From c5451a3a66393cbe8793280996b15859f4e601c4 Mon Sep 17 00:00:00 2001 From: Jan Segre Date: Thu, 1 Jul 2021 17:10:28 -0300 Subject: [PATCH] fix(tests): pytest warnings when collecting tests --- hathor/daa.py | 2 ++ tests/resources/base_resource.py | 2 ++ 2 files changed, 4 insertions(+) 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)