From 329d86bcbf25fb315ea95bd885d45fc8ddb97ad8 Mon Sep 17 00:00:00 2001 From: Brandon <132288221+brandon-groundlight@users.noreply.github.com> Date: Thu, 5 Sep 2024 13:58:52 -0700 Subject: [PATCH] testing against the same detector causes actions to fail (#249) --- test/unit/test_detector_reset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/test_detector_reset.py b/test/unit/test_detector_reset.py index 83393546..65f4d0f9 100644 --- a/test/unit/test_detector_reset.py +++ b/test/unit/test_detector_reset.py @@ -28,7 +28,7 @@ def test_reset_retry(gl_experimental: ExperimentalApi): def test_reset_training(gl_experimental: ExperimentalApi): # If we reset a detector, we should have low confidence after the reset low_confidence_threshold = 0.6 - det = gl_experimental.get_or_create_detector("Test Detector for Resets", "is this a cat?") + det = gl_experimental.create_detector(f"Test {datetime.utcnow()}", "is this a cat") gl_experimental.reset_detector(det.id) iq = gl_experimental.submit_image_query(det, "test/assets/cat.jpeg", human_review="NEVER") assert iq.result.confidence < low_confidence_threshold