title: Pytest collection warning __init__ constructor
body: <p>I really couldn't find a solution for :</p>
  <blockquote>
  <p>PytestCollectionWarning: cannot collect test class 'TestBlaBla' because it has a <strong>init</strong> constructor</p>
  </blockquote>
  <p>Here is my testing module and it needs to take the arguments outside of this file because at the end of the day I'm gonna call all test modules in a single file and run them all over different names and there is a bunch of names. I have to init them but when I run pytest it always ignores these classes. Idk how to handle without initializing them. If there is any suggestions I would be glad to hear.</p>
  <pre><code>tests/test_bla_bla.py
  class TestBlaBla():
      def __init__(self, **kwargs):
       
          self.name1 = kwargs.get(&quot;name1&quot;)
          self.name2 = kwargs.get(&quot;name2&quot;)
  
      @pytest.fixture(scope='session')
      def load_data_here(self): 
          return load_data(self.name1) # a function comes from a utils file. it only stands for load data and it needs take a name for path
  ..
  &quot;continue with test_ functions that use output of load_data_here&quot;
  </code></pre>
  <hr />
  <pre><code>tests/main.py
  class TestingAll:
      def __init__(self, *args, **kwargs):
          self.name1 = kwargs.get(&quot;name1&quot;)
          self.name2 = kwargs.get(&quot;name2&quot;)
          self._process()
          
      def _process(self):
          TestBlaBla(name1 = self.name1, name2= self.name2)
          TestBlaBla2(name1 = self.name1, name2= self.name2)
  
          
          
  if __name__ == &quot;__main__&quot;:
      Test = TestingAll(name1 = &quot;name1&quot;, name2= &quot;name2&quot;)
  </code></pre>