Development¶
Test suite¶
Before committing changes or opening a pull request (PR) to the code base, please make sure that all tests pass. The test suite is managed by tox and is configured to use system-wide packages when available. Install the test dependencies as follows:
$> pip install --group test
The test suite can be run from anywhere in the project tree by issuing:
$> tox
To display the defined test environments and target them individually:
$> tox -l
$> tox -e lint,test,docs
To test individual files:
$> ruff check src/pyunicorn/core/network.py # linting and formatting
$> pytest tests/test_core/test_network.py # unit tests