From 0b42f9aedf1607121e76b597df4efe9f32b11f37 Mon Sep 17 00:00:00 2001 From: CoreyEWood Date: Wed, 13 Nov 2024 20:07:39 +0000 Subject: [PATCH] remove invalid iq id tests --- test/integration/test_groundlight.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/test/integration/test_groundlight.py b/test/integration/test_groundlight.py index d4c772c4..a0dc44ba 100644 --- a/test/integration/test_groundlight.py +++ b/test/integration/test_groundlight.py @@ -334,28 +334,6 @@ def test_submit_image_query_with_id(gl: Groundlight, detector: Detector): assert _image_query.metadata.get("is_from_edge") -def test_submit_image_query_with_invalid_id(gl: Groundlight, detector: Detector): - # Invalid ID format - id = f"iqabc_{KsuidMs()}" - with pytest.raises(ApiException): - gl.submit_image_query( - detector=detector.id, image="test/assets/dog.jpeg", wait=10, human_review="NEVER", image_query_id=id - ) - - # Duplicate ID entry - id = f"iq_{KsuidMs()}" - _image_query_1 = gl.submit_image_query( - detector=detector.id, image="test/assets/dog.jpeg", wait=10, human_review="NEVER", image_query_id=id - ) - assert str(_image_query_1) - assert isinstance(_image_query_1, ImageQuery) - assert is_valid_display_result(_image_query_1.result) - with pytest.raises(ApiException): - gl.submit_image_query( - detector=detector.id, image="test/assets/dog.jpeg", wait=10, human_review="NEVER", image_query_id=id - ) - - def test_submit_image_query_with_human_review_param(gl: Groundlight, detector: Detector): # For now, this just tests that the image query is submitted successfully. # There should probably be a better way to check whether the image query was escalated for human review.