pytest setup_test execute before code example
Example 1: python run pytest
Just type this in shell:
pytest
Or this if that does nott work:
python -m pytest
Example 2: run a particular test function in pytest
pytest tests_directory/foo.py tests_directory/bar.py -k "test_001 or test_some_other_test"