sot / kadi

Chandra commands and events
https://sot.github.io/kadi
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Add unit and regression tests for validation #300

Closed taldcroft closed 7 months ago

taldcroft commented 7 months ago

Description

This adds code and data to perform detailed regression testing on the commands validation code.

By definition the tests are passing now on my Mac since the same code is used to generate the regression data as for doing the test.

Interface impacts

None

Testing

Unit tests

(ska3-perf) ➜ kadi git:(validate-unit-test) pytest kadi ==================================================== test session starts ==================================================== platform darwin -- Python 3.10.8, pytest-7.2.1, pluggy-1.0.0 rootdir: /Users/aldcroft/git, configfile: pytest.ini plugins: timeout-2.1.0, anyio-3.6.2 collected 218 items

kadi/commands/tests/test_commands.py ........................................................................... [ 34%] kadi/commands/tests/test_states.py ......................x.............................................x............. [ 72%] .......... [ 76%] kadi/commands/tests/test_validate.py ................... [ 85%] kadi/tests/test_events.py .......... [ 89%] kadi/tests/test_occweb.py ...................... [100%]

======================================== 216 passed, 2 xfailed in 129.04s (0:02:09) =========================================



Independent check of unit tests by Jean
- [x] Linux

### Functional tests
<!-- Describe and document results of any functional tests, otherwise leave the text below -->
No functional testing.