From 50e2665467c263eb0c33899245555222c56487db Mon Sep 17 00:00:00 2001 From: Michael Bunsen Date: Wed, 20 Nov 2024 18:28:25 -0800 Subject: [PATCH] chore: properly skip a test --- trapdata/api/test_api.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/trapdata/api/test_api.py b/trapdata/api/test_api.py index 310a7ac..ac40e70 100644 --- a/trapdata/api/test_api.py +++ b/trapdata/api/test_api.py @@ -8,6 +8,7 @@ from unittest import TestCase import PIL.Image +import pytest from trapdata.common.filemanagement import find_images from trapdata.tests import TEST_IMAGES_BASE_PATH @@ -158,7 +159,10 @@ def test_classification_zero(self): for classification in result.classifications: self.assertLessEqual(classification.scores[0], 0.4) - def _skip_test_binary_classification_zero(self): + @pytest.mark.skip( + reason="The new binary classifier is classifying empty images as moths" + ) + def test_binary_classification_zero(self): # @TODO # This is classifying empty images as moths!