Skip to content

Commit c37f91b

Browse files
Merge pull request #1086 from roboflow/fix/test_multi_label_classification_workflow_assertions_for_prod
Update E2E test assertions for test_multi_label_classification_workflow
2 parents d10ca47 + 0d2735c commit c37f91b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tests/inference/hosted_platform_tests/workflows_examples/roboflow_models/v1/test_workflow_for_classification.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ def test_multi_class_classification_workflow(
122122
{"dog"},
123123
{"cat", "dog"},
124124
],
125-
PlatformEnvironment.ROBOFLOW_PLATFORM: [{"cat", "dog"}, {"cat", "dog"}],
125+
PlatformEnvironment.ROBOFLOW_PLATFORM: [{"dog"}, set()],
126126
}
127+
MULTI_LABEL_CLASSIFICATION_RESULTS_FOR_ENVIRONMENT[PlatformEnvironment.ROBOFLOW_STAGING_LOCALHOST] = MULTI_LABEL_CLASSIFICATION_RESULTS_FOR_ENVIRONMENT[PlatformEnvironment.ROBOFLOW_STAGING]
128+
MULTI_LABEL_CLASSIFICATION_RESULTS_FOR_ENVIRONMENT[PlatformEnvironment.ROBOFLOW_PLATFORM_LOCALHOST] = MULTI_LABEL_CLASSIFICATION_RESULTS_FOR_ENVIRONMENT[PlatformEnvironment.ROBOFLOW_PLATFORM]
127129

128130

129131
@pytest.mark.flaky(retries=4, delay=1)

tests/inference/hosted_platform_tests/workflows_examples/roboflow_models/v2/test_workflow_for_classification.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
PlatformEnvironment.ROBOFLOW_STAGING: [0.3667, 0.5917],
4141
PlatformEnvironment.ROBOFLOW_PLATFORM: [0.8252, 0.9962],
4242
}
43-
43+
MULTI_CLASS_CLASSIFICATION_RESULTS_FOR_ENVIRONMENT[PlatformEnvironment.ROBOFLOW_STAGING_LOCALHOST] = MULTI_CLASS_CLASSIFICATION_RESULTS_FOR_ENVIRONMENT[PlatformEnvironment.ROBOFLOW_STAGING]
44+
MULTI_CLASS_CLASSIFICATION_RESULTS_FOR_ENVIRONMENT[PlatformEnvironment.ROBOFLOW_PLATFORM_LOCALHOST] = MULTI_CLASS_CLASSIFICATION_RESULTS_FOR_ENVIRONMENT[PlatformEnvironment.ROBOFLOW_PLATFORM]
4445

4546
@pytest.mark.flaky(retries=4, delay=1)
4647
def test_multi_class_classification_workflow(
@@ -122,8 +123,10 @@ def test_multi_class_classification_workflow(
122123
{"dog"},
123124
{"cat", "dog"},
124125
],
125-
PlatformEnvironment.ROBOFLOW_PLATFORM: [{"cat", "dog"}, {"cat", "dog"}],
126+
PlatformEnvironment.ROBOFLOW_PLATFORM: [{"dog"}, set()],
126127
}
128+
MULTI_LABEL_CLASSIFICATION_RESULTS_FOR_ENVIRONMENT[PlatformEnvironment.ROBOFLOW_STAGING_LOCALHOST] = MULTI_LABEL_CLASSIFICATION_RESULTS_FOR_ENVIRONMENT[PlatformEnvironment.ROBOFLOW_STAGING]
129+
MULTI_LABEL_CLASSIFICATION_RESULTS_FOR_ENVIRONMENT[PlatformEnvironment.ROBOFLOW_PLATFORM_LOCALHOST] = MULTI_LABEL_CLASSIFICATION_RESULTS_FOR_ENVIRONMENT[PlatformEnvironment.ROBOFLOW_PLATFORM]
127130

128131

129132
@pytest.mark.flaky(retries=4, delay=1)

0 commit comments

Comments
 (0)