Pytest Pytest 1. for files whose name leading with test_ pytest 2. for single file the name of functions leading with test_ def test_fun1(): assert 1 == 3 run pytest python -m pytest XXX.py