title: How to use variables from another file for Pytest
body: <p>I want to set up some unit tests for my game in <code>Fish.py</code>, and make sure that when the game plays through several different sessions the tests are always clear. I put my unit tests into <code>FishTests.py</code>. In this small example, the score counter should never be negative.</p>
  
  <pre class="lang-py prettyprint-override"><code>import pytest
  import Fish
  
  # TEST: counter should never be negative
  def test_counter_neg(Fish.counter):
      assert counter &gt; 0
  </code></pre>
  
  <p>My IDE Pycharm underlines <code>Fish.counter</code> in red and gives an error <code>Unresolved reference</code>. </p>
  
  <p>What's the right way to do this? Am I supposed to use the <code>fixture</code>? But then I'd need to write a new fixture for every variable and function from <code>Fish.py</code>.</p>