Skip to content

Commit

Permalink
Remove PytestWarnings about collecting test classes
Browse files Browse the repository at this point in the history
The classes under tests.util are not destined to hold test cases.

Signed-off-by: Ivan Kanakarakis <[email protected]>
  • Loading branch information
c00kiemon5ter committed Nov 7, 2019
1 parent 7f61b40 commit 20a31dc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ def register_endpoints(self, backend_names):


class TestBackend(BackendModule):
__test__ = False

def __init__(self, auth_callback_func, internal_attributes, config, base_url, name):
super().__init__(auth_callback_func, internal_attributes, base_url, name)

Expand All @@ -474,6 +476,8 @@ def handle_response(self, context):


class TestFrontend(FrontendModule):
__test__ = False

def __init__(self, auth_req_callback_func, internal_attributes, config, base_url, name):
super().__init__(auth_req_callback_func, internal_attributes, base_url, name)

Expand All @@ -492,6 +496,8 @@ def handle_authn_response(self, context, internal_resp):


class TestRequestMicroservice(RequestMicroService):
__test__ = False

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

Expand All @@ -503,6 +509,8 @@ def callback(self):


class TestResponseMicroservice(ResponseMicroService):
__test__ = False

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

Expand Down

0 comments on commit 20a31dc

Please sign in to comment.