title: How to override a pytest fixture calling the original in pytest 4
body: <p>I am defining a pytest fixture that to overrides <a href="https://pytest-django.readthedocs.io/en/latest/database.html#django-db-setup" rel="noreferrer">the <code>django_db_setup</code> fixture</a>.</p>
  
  <p>The change I have sets up additional teardown for safety, as there are integration tests that use this fixture which may spawn processes and cleanup is sometimes required to keep all things from breaking.</p>
  
  <p>This seems reasonable, and is also suggested in pytest docs. However, I don't want to copy paste the same exact logic of <code>django_db_setup</code> since I'm happy with what is already there. Running it as a function, however, raises a deprecation warning:</p>
  
  <pre class="lang-py prettyprint-override"><code>/usr/local/lib/python3.6/dist-packages/_pytest/fixtures.py:799:
  
   RemovedInPytest4Warning: Fixture "django_db_setup" called directly.
   Fixtures are not meant to be called directly, are created automatically
   when test functions request them as parameters. See
   https://docs.pytest.org/en/latest/fixture.html for more information.
  </code></pre>
  
  <p>What would be the recommended way to deal with this situation in pytest 4? Are we encouraged to copy-paste code from fixtures we want to override, or is there another way to "inherit" a fixture, and inject e.g custom behavior <strong>before as well as after</strong> it is called?</p>