title: pytest fixture not found (pytest-bdd)
body: <p>I have the following step definitions, which result in an error because the <code>@given</code> fixture is not found, even though it is defined in <code>target_fixture</code>:</p>
  <pre><code>import pytest
  from pytest_bdd import scenario, given, when, then, parsers
  from admin import Admin
  
  @scenario('../features/Admin.feature',
            'register a new user')
  
  def test_admin():
      pass
  
  @given('I\'m logged in as an admin at &lt;host_name&gt; with email &lt;admin_email&gt; and password &lt;admin_password&gt;', target_fixture=&quot;admin_login&quot;)
  def admin_login(host_name, admin_email, admin_password):
      admin = Admin(admin_email, admin_password)
      admin.login(host_name)
  #    assert admin.status_code == 200
      return admin
  
  @when('I call the register method for host &lt;host_name&gt; with email &lt;user_email&gt; and password &lt;user_password&gt; and firstName &lt;first_name&gt; and last name &lt;last_name&gt;')
  def test_register(admin_login, host_name, user_email, first_name, last_name):
      admin_login.register(host_name, user_email, first_name, last_name)
      assert admin_login.status_code == 200
  
  @then('the user will be able to log in to &lt;host_name&gt; with email &lt;user_email&gt; and password &lt;user_password&gt;')
  def test_login(admin_login):
      print(admin_login)
      assert 3 == 3
  </code></pre>
  <p>This results in the error:</p>
  <pre><code>platform darwin -- Python 3.8.5, pytest-6.1.2, py-1.9.0, pluggy-0.13.1
  rootdir: /Users/davidjoseph/work/
  plugins: bdd-4.0.1
  collected 3 items                                                                                                                                       
  
  tests/step_defs/test_admin.py EEF                                                                                                                 [100%]
  
  ======================================================================== ERRORS =========================================================================
  ____________________________________________________________ ERROR at setup of test_register ____________________________________________________________
  file /Users/davidjoseph/work/tests/step_defs/test_admin.py, line 18
    @when('I call the register method for host &lt;host_name&gt; with email &lt;user_email&gt; and password &lt;user_password&gt; and firstName &lt;first_name&gt; and last name &lt;last_name&gt;')
    def test_register(admin_login, host_name, user_email, first_name, last_name):
  E       fixture 'admin_login' not found
  &gt;       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestbdd_given_I'm logged in as an admin at &lt;host_name&gt; with email &lt;admin_email&gt; and password &lt;admin_password&gt;, pytestbdd_given_trace, pytestbdd_then_the user will be able to log in to &lt;host_name&gt; with email &lt;user_email&gt; and password &lt;user_password&gt;, pytestbdd_then_trace, pytestbdd_when_I call the register method for host &lt;host_name&gt; with email &lt;user_email&gt; and password &lt;user_password&gt; and firstName &lt;first_name&gt; and last name &lt;last_name&gt;, pytestbdd_when_trace, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
  &gt;       use 'pytest --fixtures [testpath]' for help on them.
  </code></pre>
  <p>Can anyone tell me why <code>admin_login</code> is being recognized as a fixture?</p>