title: Defining a single conftest.py for tests in subdirectories
body: <p>I have an application where my unit tests are organised like so:</p>
  
  <pre><code>server/
    tests/
      conftest.py
      test_server.py
  client/
    tests/
      conftest.py
      test_client.py
  </code></pre>
  
  <p>In this setup, there's no duplication of fixture config since the <code>conftest.py</code> files have fixtures for only their relevant tests.</p>
  
  <p>Now I'm adding integration tests, organised like so:</p>
  
  <pre><code>tests/
    conftest.py
    test_integration.py
  server/
    tests/
      conftest.py
      test_server.py
  client/
    tests/
      conftest.py
      test_client.py
  </code></pre>
  
  <p>This new <code>conftest.py</code> needs to have <strong>all</strong> the fixtures I've defined elsewhere. How can I setup py.test such that I avoid duplicating all the fixtures from both <code>client/tests/conftest.py</code> and <code>server/tests/conftest.py</code>?</p>
  
  <p>The closest similar question is:
  <a href="https://stackoverflow.com/questions/15396202/how-to-organize-fixtures-when-using-pytest">How to organize fixtures when using pytest</a></p>
  
  <p>Thanks!</p>