title: Use factoryboy with parametrized tests
body: <p>I have 2 fixtures based on factoryboy sqlalchemy model fabrics:</p>
  <pre class="lang-py prettyprint-override"><code># conftest.py
  
  @pytest.fixture(autouse=True)
  def location_type(type_factory):
      return type_factory.create(name='location')
  
  
  @pytest.fixture(autouse=True)
  def booking_item_type(type_factory):
      return type_factory.create(name='booking_item')
  </code></pre>
  <p>I want to check if both of my types were created in db:</p>
  <pre class="lang-py prettyprint-override"><code># test_*.py file
  
  def test_location_type_exists(db_session):
      assert db_session \
          .query(Type) \
          .filter(Type.name == 'location') \
          .count() == 1
  
  def test_booking_item_type_exists(db_session):
      assert db_session \
          .query(Type) \
          .filter(Type.name == 'booking_item') \
          .count() == 1
  </code></pre>
  <p>It works fine, tests pass.</p>
  <p>But I want to transform two tests to one parametrized test:</p>
  <pre class="lang-py prettyprint-override"><code>@pytest.mark.parametrize('name', ['location', 'booking_item'])
  def test_type_exist(db_session, name):
      assert db_session \
          .query(Type) \
          .filter(Type.name == name) \
          .count() == 1
  </code></pre>
  <p>I got one passed and one failed test with error <code>AssertionError: assert 2 == 1</code>. Why does it work this way? I expected the same result like the first case.</p>