title: Pytest - run multiple tests from a single file
body: <p>I'm using Pytest (Selenium) to execute my functional tests. I have the tests split across 2 files in the following structure:</p>
  
  <p>My_Positive_Tests.py</p>
  
  <pre><code>class Positive_tests:
  
  
    def test_pos_1():
      populate_page()
      check_values()
  
    def test_pos_2():
      process_entry()
      validate_result()
  </code></pre>
  
  <p>My_Negative_Tests.py</p>
  
  <pre><code>class Negative_tests:
    def test_neg_1
      populate_page()
      validate_error()
  </code></pre>
  
  <p>The assertions are done within the functions (check_values, validate_result, validate_error).
  I'm trying to find a way to run all the tests from a single file, so that the main test file would look something like:</p>
  
  <p>My_Test_Suite.py</p>
  
  <pre><code>test_pos_1() 
  test_pos_2()
  test_neg_1()
  </code></pre>
  
  <p>Then from the command line I would execute:</p>
  
  <pre><code>py.test --tb=short "C:\PycharmProjects\My_Project\MyTest_Suite.py" --html=report.html
  </code></pre>
  
  <p>Is it possible to do something like this? I've been searching and haven't been able to find out how to put the calls to those tests in a single file.</p>