title: Running pytest in VS code when needing to load modules beforehand
body: <p>I am trying to use <code>pytest</code> within VS code, running in red hat linux. The environment that I am using means that I need to load modules such as <a href="https://pandas.pydata.org/" rel="nofollow noreferrer">pandas</a> before running <code>pytest</code>. In the terminal I can run:</p>
  
  <pre><code>module load pandas
  pytest
  </code></pre>
  
  <p>and the tests are successfully run. I can do this in both the standard terminal, in the Python Debug Console within VS code, and int he bash terminal within VS code. If, however, I press the "Run All Tests" button within VS code, then I just get an error telling me that it cannot find the pandas module. </p>
  
  <p>How can I tell the test environment to run my <code>module load pandas</code> command before running pytest?</p>