Links: PROGRAMMING - PYTHON
Rel: Python Testing with pytest (Brian Okken)
Ref: docs
Tags: #public
testing in PYTHON
pip install pytest
assert
pytest -v path/to/file/or/directory/ accepts/multiple/paths
- looks for files starting with test_ or ending with _test in all subdirectories to run
- convention: def test_\
- @pytest.mark.skip() @pytest.mark.skip_if() @pytest.mark.xfail()
- pytest -v path/to/test_file.py::test_one_fxn
pytest --help