Tests

pyripherals uses pytest for its tests. pytest can be installed with pip.

>>> pip install pytest

All tests are available in the tests folder on the GitHub All automated and working tests can be run with the “usable” marker. To run the tests clone the repository and navigate into the repository.

>>> py -m pytest -m usable

More specific marks are available for different setups. Simply replace “usable” with one of the following markers in the command above.

  • no_fpga: use if you do not have an FPGA connected

  • fpga_only: use if you have an FPGA connected

  • usable: all working automated tests; requires an FPGA and connected peripherals which is very specific to our lab