Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
honeytung committed Jul 2, 2024
1 parent 60553f8 commit 3a1e41b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/api/test_motdet.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,13 @@ def test_motion_detection_not_sufficient_if_doesnt_meet_conf_threshold(gl: Groun
new_response = gl.submit_image_query(
detector=detector.id,
image=original_image,
patience_time=30.0,
wait=10,
confidence_threshold=base_iq_response.result.confidence + 1e-3, # 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" Detector Confidence: {detector.confidence_threshold}. Old IQ Confidence: {base_iq_response.result.confidence}. New IQ Confidence: {new_response.result.confidence}."
)

0 comments on commit 3a1e41b

Please sign in to comment.