From 627849fdbe3a80ac8e6227a6e147c9d4a15f386d Mon Sep 17 00:00:00 2001 From: Harry Tung Date: Tue, 2 Jul 2024 10:13:05 -0700 Subject: [PATCH] Added more debugging messages --- test/api/test_motdet.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/api/test_motdet.py b/test/api/test_motdet.py index 2bae7c0a..5c44c6ae 100644 --- a/test/api/test_motdet.py +++ b/test/api/test_motdet.py @@ -257,11 +257,12 @@ def test_motion_detection_not_sufficient_if_doesnt_meet_conf_threshold(gl: Groun detector=detector.id, image=original_image, patience_time=30.0, - confidence_threshold=base_iq_response.result.confidence + 1e-3, # Require a higher confidence than before + confidence_threshold=base_iq_response.result.confidence + 1e-5, # Require a higher confidence than before ) assert new_response.id != base_iq_response.id, "ImageQuery id should be different whether or not motion det is run" assert new_response.id.startswith("iq_"), ( "ImageQuery id should start with 'iq_' because it was created on the cloud, because the cached mot det response" - " did not meet the confidence threshold" + f" did not meet the confidence threshold of {base_iq_response.result.confidence + 1e-5}." + f" New response confidence: {new_response.result.confidence}" )