Tests
The project includes a set of Pytest unit tests that verify individual plugins and methods. This section documents the unit tests and how to run them locally.
The unit tests live under the directory tests/unit/.
Contents
Running tests
To run Pytest tests locally, you may need to set up a new virtual environment with the required dependencies. The steps are as follows:
poetry config virtualenvs.create true
poetry install
poetry env activate # if the environment does not get activated automatically, copy-paste the output of this command into the terminal
You can now run all tests in the repository with either:
pytest
or:
make python-test
You can also run an individual test with:
pytest -v tests/unit/plugins/test_adc_ad9695.py