test_adc_ad9695.py
File: tests/unit/plugins/test_adc_ad9695.py
This page describes the Pytest unit tests defined in test_adc_ad9695.py for some
ADC plugin methods defined in ska_low_sps_tpm_api.plugins.adc_ad9695.
Tests
test_default_adc_single_start: Verifies the ADC initialisation sequence defined in the ADC plugin method adc_single_start() with the default parameters by checking the ADC register writes & LED writes against expected values.test_default_adc_single_start_dual_14_ddc: Verifies the other ADC initialisation sequence defined in the ADC plugin method adc_single_start_dual_14_ddc() with the default parameters by checking the ADC register writes & LED writes against expected values.
How to run
Run all unit tests in a single file with:
pytest -v tests/unit/plugins/test_adc_ad9695.py
Run a single unit test:
pytest -v tests/unit/plugins/test_adc_ad9695.py::TestAdcInit::test_default_adc_single_start
Notes
The tests use helper data from
tests/unit/plugins/test_adc_ad9695_helper.py. if any changes are made in the ADC initialisation sequence, the dictionaries of expected ADC writes in the helper file should also be updated.