diff --git a/test.py b/test.py index effb311..5e400c1 100644 --- a/test.py +++ b/test.py @@ -1,20 +1,28 @@ # Copyleft (c) 2016 Cocobug All Rights Reserved. # -*- coding: utf_8 -*- -import sys +import sys,os try: from blessings import Terminal except: print ("You need to have blessings installed to run the test") + print ("A blessingless version is being worked on") sys.exit() try: from minitest import minitest except: print ("You need to have minitest installed to run the test") - print ("the latest version of minitest should have been included with the vkyweb package") + print (" the latest version of minitest should have been included with the vkyweb package") + print (" you can download it manually at https://github.com/Malphaet/minitest") sys.exit() import types + +try: + import markdown +except: + print ("You need markdown installed to parse the files") + sys.exit() from generator import * term=Terminal() @@ -355,12 +363,11 @@ class testDual(simple): self.addFailure(" (got {})".format(dual_select)) self.currentTest("dual:iframe") - if (dual.iframe(["page1.html","page2.html"])!=""""""): - self.addFailure("iframes generation incorrect") + if (dual.iframe(["page1.html","page2.html"])!=""""""): + self.addFailure("iframes generation incorrect (got {})".format(dual.iframe(["page1.html","page2.html"]))) else: self.addSuccess() - impoe self.currentTest("dual:pathAssets") if os.path.exists(dual.assets()): self.addSuccess()