tests - remove useless log and return boolean from Test.end
This commit is contained in:
parent
68bf5ef850
commit
fa2d52d80f
|
@ -41,7 +41,7 @@ class Test(ABC) :
|
|||
# Class method
|
||||
# called once all tests ended
|
||||
def end() :
|
||||
pass
|
||||
return True
|
||||
|
||||
# called before starting the tests
|
||||
# must be override if specific actions needs to be done
|
||||
|
@ -101,7 +101,7 @@ class Test(ABC) :
|
|||
r = get(ex_url, timeout=5)
|
||||
return test["string"].casefold() in r.text.casefold()
|
||||
except :
|
||||
log("TEST", "❌", "exception while running test of type " + test["type"] + " on URL " + ex_url + "\n" + format_exc())
|
||||
#log("TEST", "❌", "exception while running test of type " + test["type"] + " on URL " + ex_url + "\n" + format_exc())
|
||||
return False
|
||||
raise(Exception("unknow test type " + test["type"]))
|
||||
|
||||
|
|
Loading…
Reference in New Issue