All example commands should be executed from the project root directory unless indicated otherwise.
- Git.
- Python (see
.python-version
). - A clone of the
opera-sds-pcm
repo.
- Create a python virtual environment named
venv
.- RECOMMENDED: move
pip.conf
into the resultingvenv/
directory.
- RECOMMENDED: move
- Activate the virtual environment and install dependencies listed in the relevant section of
setup.py
using a command like the followingpip install -e '.[test]'
To run the tests:
Install test dependencies
pip install -e '.[test]'
Run unit tests
pytest
# or this
pytest tests/unit
There are also higher-level tests to cover system behaviors and workflows, located under tests/integration
and other directories under tests
By default, pytest
has been configured to run only unit tests under tests/unit