From fa2d52d80fe07bc0a06deb3d5150b11fec032fa8 Mon Sep 17 00:00:00 2001 From: florian Date: Thu, 14 Jul 2022 14:58:48 +0200 Subject: [PATCH] tests - remove useless log and return boolean from Test.end --- tests/Test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Test.py b/tests/Test.py index 99fa8ab51..a9e804d9d 100644 --- a/tests/Test.py +++ b/tests/Test.py @@ -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"]))