Pytest - Conclusion


Advertisements

This tutorial introduced you to pytest framework. Now you should be able to start writing tests using pytest.

As a good practice −

  • Create different test files based on functionality/module being tested.
  • Give meaningful names to test files and methods.
  • Have enough markers to group the tests based on various criteria.
  • Use fixtures whenever needed.
Advertisements