Skip to content

Commit 36b01cf

Browse files
committed
Test fails because code is incomplete! :)
1 parent a312dda commit 36b01cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/integration/test_groundlight.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ def test_get_detector(gl: Groundlight, detector: Detector):
5858
assert isinstance(_detector, Detector)
5959

6060

61+
def test_submit_image_query_blocking(gl: Groundlight, detector: Detector):
62+
# Ask for a trivially small wait so it never has time to update, but uses the code path
63+
_image_query = gl.submit_image_query(detector=detector.id, image="test/assets/dog.jpeg", wait=0.001)
64+
assert str(_image_query)
65+
assert isinstance(_image_query, ImageQuery)
66+
67+
6168
def test_submit_image_query_filename(gl: Groundlight, detector: Detector):
6269
_image_query = gl.submit_image_query(detector=detector.id, image="test/assets/dog.jpeg")
6370
assert str(_image_query)

0 commit comments

Comments
 (0)