diff --git a/hathor/daa.py b/hathor/daa.py index 7fd79afc3..c2bb68a4c 100644 --- a/hathor/daa.py +++ b/hathor/daa.py @@ -41,6 +41,8 @@ class TestMode(IntFlag): + __test__ = False + DISABLED = 0 TEST_TX_WEIGHT = 1 TEST_BLOCK_WEIGHT = 2 diff --git a/tests/resources/base_resource.py b/tests/resources/base_resource.py index 60fce9c86..9f3f3ac6b 100644 --- a/tests/resources/base_resource.py +++ b/tests/resources/base_resource.py @@ -52,6 +52,8 @@ def read(self): class TestDummyRequest(DummyRequest): + __test__ = False + def __init__(self, method, url, args=None, headers=None): slash = b'/' if isinstance(url, bytes) else '/' path = url.split(slash)