pytest run tests inside a class with a constructor
问题 I want to write a test suite for an API. my project tree looks like: project tree I need to have a 'client' file with classes where we initialize all the helper functions(e.g. the actual request that is sent with the params, asserts, configs etc.). And the actual test class. so I have class Client() __init__() def helper_function() class TestBackend(Client) __init__() def test_something() Then I try to run my tests with pytest. I keep getting PytestWarning: cannot collect test class