pytest test one function code example
Example: run a particular test function in pytest
pytest tests_directory/foo.py tests_directory/bar.py -k "test_001 or test_some_other_test"
pytest tests_directory/foo.py tests_directory/bar.py -k "test_001 or test_some_other_test"