title: Pytest how to enforce test collection in subfolder containing pytest.ini
body: <p>Let's say I have the following folder structure:</p>
  <pre><code>MyPackage
  - subfolder
  -- pytest.ini
  -- my_module.py
  -- test_module.py
  </code></pre>
  <p>The <code>pytest.ini</code> in <code>subfolder</code> contains this:</p>
  <pre><code>[pytest]
  python_files = test_*.py my_module*.py
  </code></pre>
  <p>The <code>my_module.py</code> contains test functions like <code>def test_this()</code>.
  If I call pytest to collect tests in the <code>subfolder</code>, It collects the tests in <code>my_module.py</code> as well, as expected:</p>
  <pre class="lang-sh prettyprint-override"><code>pytest --collect-only MyPackage/subfolder
  </code></pre>
  <p>However, if I call pytest for MyPackage, it does not collect the tests in <code>my_module.py</code>, only in <code>test_module.py</code></p>
  <pre class="lang-sh prettyprint-override"><code>pytest --collect-only MyPackage
  </code></pre>
  <p>My question is: Can it be done so that pytest recursively processes the <code>pytest.ini</code> in the subfolder?</p>
  <p>In other words: What is the scope of the pytest.ini files in the subfolders? Is ot only processed if pytest is called locally? Is there a way to force pytest to recursively process pytest.ini in subfolders?</p>