- pronounce how you like, but I generally say piper as in “piping down the valleys wild”
pypyr is a command line interface to run pipelines defined in yaml.
Run from tox to test the packaging cycle inside a virtual env, plus run all tests:
# just run tests $ tox -e dev -- tests # run tests, validate README.rst, run flake8 linter $ tox -e stage -- tests
The test framework is pytest. If you only want to run tests:
$ pip install -e .[dev,test]
Tests live under /tests (surprising, eh?). Mirror the directory structure of the code being tested.
Prefix a test definition with test_ - so a unit test looks like
To execute tests, from root directory: pytest tests
For a bit more info on running tests: pytest –verbose [path]
To execute a specific test module: pytest tests/unit/arb_test_file.py