How to invoke pytest — pytest documentation
docs.pytest.org › en › latestIn general, pytest is invoked with the command pytest (see below for other ways to invoke pytest). This will execute all tests in all files whose names follow the form test_*.py or \*_test.py in the current directory and its subdirectories. More generally, pytest follows standard test discovery rules.
pytest: helps you write better programs — pytest documentation
pytest.orgpytest: helps you write better programs. ¶. The pytest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries. An example of a simple test: # content of test_sample.py def inc(x): return x + 1 def test_answer(): assert inc(3) == 5. To execute it: