title: pytest ScopeMismatch error: how to use fixtures properly
body: <p>For the following piece of code:</p>
  
  <pre><code>@pytest.fixture(scope="module")
  def dummy_article(request, db):
      return mixer.blend("core.article", title="this one price", internal_id=3000)
  
  
  def test_article_str_method(dummy_article):
      assert (
          str(dummy_article)
          == f"article with ID {dummy_article.internal_id} and title: {dummy_article.title}"
      )
  </code></pre>
  
  <p>I'm getting the following error:</p>
  
  <pre><code>ScopeMismatch: You tried to access the 'function' scoped fixture 'db' with a 'module' scoped request object, involved factories
  core/tests/test_article_model.py:13:  def dummy_article(request, db)
  </code></pre>
  
  <p>The error goes away if I change the fixture to use <code>scope="function"</code>, but that defeats the purpose of having it available to other tests and not having to "set-up" for every test.</p>
  
  <p>How can I have fixtures with <code>db</code> access that have a scope wider than <code>function</code>?</p>