mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
tests - remove useless log and return boolean from Test.end
This commit is contained in:
parent
68bf5ef850
commit
fa2d52d80f
1 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ class Test(ABC) :
|
||||||
# Class method
|
# Class method
|
||||||
# called once all tests ended
|
# called once all tests ended
|
||||||
def end() :
|
def end() :
|
||||||
pass
|
return True
|
||||||
|
|
||||||
# called before starting the tests
|
# called before starting the tests
|
||||||
# must be override if specific actions needs to be done
|
# must be override if specific actions needs to be done
|
||||||
|
|
@ -101,7 +101,7 @@ class Test(ABC) :
|
||||||
r = get(ex_url, timeout=5)
|
r = get(ex_url, timeout=5)
|
||||||
return test["string"].casefold() in r.text.casefold()
|
return test["string"].casefold() in r.text.casefold()
|
||||||
except :
|
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
|
return False
|
||||||
raise(Exception("unknow test type " + test["type"]))
|
raise(Exception("unknow test type " + test["type"]))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue