Fix unit tests for background detectors as Things

This commit is contained in:
Julian Stirling 2026-01-13 19:49:34 +00:00
parent 3e8874188e
commit 6b97d2da44
5 changed files with 51 additions and 116 deletions

View file

@ -19,7 +19,7 @@ def test_calibration(picamera_test_env):
# Tuning should start the same as the server is loading with no settings.
assert picamera_thing.default_tuning == picamera_thing.tuning
# The background detector isn't ready as there is no background image.
assert not picamera_thing.background_detector_status.ready
assert not picamera_thing.active_detector.ready
# Run full auto calibrate
picamera_client.full_auto_calibrate()
@ -31,7 +31,7 @@ def test_calibration(picamera_test_env):
# The default should be unchanged
assert picamera_thing.default_tuning == original_default
assert picamera_thing.background_detector_status.ready
assert picamera_thing.active_detector.ready
def test_tuning_is_persistent():