Skip to content

Commit

Permalink
stop warning py3status/tests/test_module_load.py:5
Browse files Browse the repository at this point in the history
PytestCollectionWarning: cannot collect test class 'TestModule'
because it has a __init__ constructor (from: tests/test_module_load.py)
	class TestModule
  • Loading branch information
lasers committed Dec 24, 2024
1 parent 5d73d00 commit b7bed2c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_module_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
class TestModule:
static_variable = 123

def __init__(self):
self.instance_variable = 321
@classmethod
def setup_class(cls):
cls.instance_variable = 321

def post_config_hook(self):
pass
Expand Down

0 comments on commit b7bed2c

Please sign in to comment.