fossasia / pslab-python

Python Library for PSLab Desktop: https://pslab.io
GNU General Public License v3.0
1.62k stars 226 forks source link

Generalize pytest fixtures #134

Closed bessman closed 3 years ago

bessman commented 3 years ago

This PR generalizes the test fixtures written for the logic analyzer so that they can be used by other modules. This PR also rewrites the tests for the oscilloscope to use these fixtures.

The oscilloscope now has integration tests, just like the logic analyzer. To run them, connect SI1 to CH1, CH2, and CH3, and run pytest --integration tests/test_oscilloscope.py from the project root.