title: Accessing test file name from conftest.py
body: <p><strong>What I'm trying to do</strong></p>
  
  <p>I'm writing a small framework in python using pytest, and as part of the teardown I am taking a screenshot.
  Now, I want that screenshot to be named according to the running test, not conftest.py
  So, for example, my code right now is:</p>
  
  <pre><code>driver.save_screenshot(os.path.basename(__file__)+'.png')
  </code></pre>
  
  <p><strong>The problem</strong></p>
  
  <p>This prints the name "conftest.py".
  I want to print the calling test name if possible. I am guessing using requests? </p>