title: How can I pass scenario specific arguments to pytest bdd after_scenario hook?
body: <p>I'm using pytest bdd to execute bdd scenarios. Example:</p>
  <pre><code>Scenario Outline: entry with special character
  Given I am an authenticated user
  When I request entry information with &lt;entryName&gt; name
  Then I expect a 200 response code
  And I check the output list contains valid data
  Examples:
    | entryName     |
    | #@            |
  </code></pre>
  <p>During the scenario, I create the entry, that I then query for and validate response code/output.
  I want to be able to cleanup the entry I created regardless of the scenario success (so inserting another row of &quot;Then I clean up my data&quot; won't achieve my goal).</p>
  <p>According to <a href="https://pytest-bdd.readthedocs.io/en/latest/" rel="nofollow noreferrer">https://pytest-bdd.readthedocs.io/en/latest/</a> - there's a <code>pytest_bdd_after_scenario(request, feature, scenario)</code> hook that should allow me to execute the cleanup regardless of the scenario success.</p>
  <ol>
  <li>Where should I implement it? (I tried putting it in test_my_scenario.py but it didn't get executed, and according to <a href="https://github.com/pytest-dev/pytest-bdd/issues/174" rel="nofollow noreferrer">https://github.com/pytest-dev/pytest-bdd/issues/174</a> it looks like it should be in conftest?)</li>
  <li>How can I pass a scenario specific argument to the hook? Unlike <code>pytest_bdd_step_error</code> it doesn't have func_args in the signature. So how can I clean up the specific entry I created during the scenario?</li>
  </ol>