tests - remove useless log and return boolean from Test.end

This commit is contained in:
florian 2022-07-14 14:58:48 +02:00
parent 68bf5ef850
commit fa2d52d80f
1 changed files with 2 additions and 2 deletions

View File

@ -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"]))