This directory contains the Python test suite of HyperQueue.
The following commands are supposed to be executed from the root HyperQueue directory.
- Install
pytestand other dependencies$ python -m venv .env $ source .env/bin/activate $ python -m pip install -r tests/requirements.txt - Build and install rust bindings
$ cd crates/pyhq $ maturin develop $ cd ../..
- Run tests
$ python -m pytest tests
You can speed up test execution by running them in parallel:
$ python -m pytest tests -n16There are several tests for the automatic allocator that require the presence of an external service (PBS).
If you are on a system that has these services installed, you can run these tests with the pbs mark:
$ python -m pytest tests -m pbsYou can bless tests with the following command:
$ python -m pytest --inline-snapshot=create