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 -------- .. toctree:: :maxdepth: 2 unit/index 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: .. code-block:: bash 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: .. code-block:: bash pytest or: .. code-block:: bash make python-test You can also run an individual test with: .. code-block:: bash pytest -v tests/unit/plugins/test_adc_ad9695.py