The observation output messages differ between astrokat's simulate module and katcorelib's mkat_session module. The tests were only considering the messages generated by the simulate module. Now we also check for messages in the format that katcorelib creates them.
This is to get CAM's AQF test run of astrokat's unit tests to pass:
======================================================================
FAIL: Check (az, el) target from (ra, dec) for drift scan
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/mock/mock.py", line 1330, in patched
return func(*args, **keywargs)
File "/home/kat/svn/astrokat/astrokat/test/test_scans.py", line 34, in test_drift_scan_basic_sim
result)
AssertionError: 'Slewed to Az: -172:57:37.1 El: 56:27:26.4 at azel (-173.0, 56.5) deg' not found in "2021-06-24 19:11:25Z - Observation start up\n2021-06-24 19:11:25Z - Running astrokat version - 0.1.dev739+master.203e5f5\n2021-06-24 19:11:25Z - Skipping instrument checks - 20210624-0150 not in approved_schedule\n2021-06-24 19:11:25Z -
The observation output messages differ between astrokat's simulate module and katcorelib's mkat_session module. The tests were only considering the messages generated by the simulate module. Now we also check for messages in the format that katcorelib creates them.
This is to get CAM's AQF test run of astrokat's unit tests to pass: