@@ -89,8 +89,10 @@ def test_create_detector(gl: Groundlight):
8989 ), "We expected the default confidence threshold to be used."
9090
9191 # Test creating dectors with other modes
92+ name = f"Test { datetime .utcnow ()} " # Need a unique name
9293 count_detector = gl .create_detector (name = name , query = query , mode = ModeEnum .COUNT , class_names = "dog" )
9394 assert str (count_detector )
95+ name = f"Test { datetime .utcnow ()} " # Need a unique name
9496 multiclass_detector = gl .create_detector (name = name , query = query , mode = ModeEnum .MULTI_CLASS , class_names = ["dog" , "cat" ])
9597 assert str (multiclass_detector )
9698
@@ -790,13 +792,13 @@ def test_submit_image_query_with_empty_inspection_id(gl: Groundlight, detector:
790792
791793def test_binary_detector (gl : Groundlight ):
792794 """
793- verify that we can create and submit to a counting detector
795+ verify that we can create and submit to a binary detector
794796 """
795797 name = f"Test { datetime .utcnow ()} "
796798 created_detector = gl .create_binary_detector (name , "Is there a dog" , "dog" , confidence_threshold = 0.0 )
797799 assert created_detector is not None
798- count_iq = gl .submit_image_query (created_detector , "test/assets/dog.jpeg" )
799- assert count_iq .result .label is not None
800+ binary_iq = gl .submit_image_query (created_detector , "test/assets/dog.jpeg" )
801+ assert binary_iq .result .label is not None
800802
801803def test_counting_detector (gl : Groundlight ):
802804 """
0 commit comments