title: PyCharm PyTest: no test subjects found
body: <p>I'm using pytest with pycharm, and I've created a simple test with pycharms <code>create new test</code> command: <code>⌘⇧T</code>.</p>
  <p>The test looks like this</p>
  <pre class="lang-py prettyprint-override"><code>def my_test():
    assert False
  </code></pre>
  <p>The issue is, that a common IDE functionality is to jump back from the test code to the test subject using the same command <code>⌘⇧T</code>. I find this very useful while practicing TDD.</p>
  <p>The problem is, that PyCharm doesn't register what the test subject is, and pops with the error:</p>
  <blockquote>
  <p>No test subjects found.</p>
  </blockquote>
  <p>I wanted to how to fix this, or if this is just the design of pytest.</p>
  <p>Thanks!</p>
  <hr />
  <p>Edit:
  To be clear, the tests run fine, so this is not a duplicate of <a href="https://stackoverflow.com/questions/45210149/pytest-doesnt-run-any-test">PyTest doesn't run any tests</a>, the issue is about PyCharm code navigation shortcuts.</p>