title: How can we execute pytest ,Test classes or set of Test functions within conftest.py
body: <p>Consider we have within same root folder, we have <strong>conftest.py , setup.py ,teardown.py and testsomething.py</strong></p>
  
  <pre><code>    #conftest.py
          ----------------------
      import pytest
      import setup // from setup import Test_Setup
      import teardown // from teardown import Test_Teardown
  
      @pytest.fixture(scope='module', autouse=True)
      def t(request):
          t = getT()
          request.addfinalizer(t.cleanup)
          return t
  
      @pytest.fixture(scope='module', autouse=True)
      def setup(t):
          // Here I want to execute class "Test_Setup" as pytest class
  
      @pytest.fixture(scope='module', autouse=True)
      def teardown(t):
          yield
          // Here I want to execute  class "Test_TearDown"as pytest class
  
       #setup.py
      ----------------------
      class Test_Setup:
  
          def test_creation(self, t):
           //test codes
  
          def test_setp1(self, t):
           //test codes
  
          def test_step2(self, t):
           //test codes
  
       #teardown.py
      ----------------------
      class Test_Teardown:
  
          def test_Reset(self,t):
             // some cleanup code
  
   #testsomething.py
      ----------------------
      class Test_Something:
  
          def test_1(self,t):
             // some cleanup code
           def test_2(self,t):
             // some cleanup code
  </code></pre>
  
  <p>we know before running test class and its function in testsomething.py pytest will run fixture <strong>setup</strong> and finally <strong>teardown</strong> defined in <strong>conftest.py</strong></p>
  
  <hr>
  
  <p>Problem is within these <strong>setup</strong> and <strong>teardown</strong> fixtures I want to run those pytest test classes defined in setup.py and teardown.py respectively.</p>
  
  <p><strong>Please Note</strong> : Those Test class execution should be executed as pytest Test class not like general class instantiation and call member function scenario and also we cannot touch <strong>testsometing.py</strong> definition, which means it should not related/imported with <strong>setup.py</strong> or <strong>teardown.py</strong></p>
  
  <p>If you can provide a solution for python 2.7 that would be really helpful.
  Thank you for the considering.</p>