Skip to content

Commit 54fba98

Browse files
committed
Removed outdated test
1 parent 9c12335 commit 54fba98

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

inference/tests/test_classification_utils.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,6 @@ def test_complex_mappings(self):
127127
actual_tags = map_classification_to_tdamm_tags(classification_results, threshold=0.8)
128128
assert sorted(actual_tags) == sorted(expected_tags)
129129

130-
@patch("django.conf.settings.TDAMM_CLASSIFICATION_THRESHOLD", 0.75)
131-
def test_default_threshold_from_settings(self):
132-
"""Test using the default threshold from settings"""
133-
classification_results = {"Optical": 0.7, "Infrared": 0.8, "X-rays": 0.9}
134-
135-
# With settings threshold of 0.75, Infrared and X-rays should be included
136-
expected_tags = ["MMA_M_EM_I", "MMA_M_EM_X"]
137-
actual_tags = map_classification_to_tdamm_tags(classification_results) # No threshold provided
138-
139-
assert sorted(actual_tags) == sorted(expected_tags)
140-
141130

142131
class TestUpdateUrlWithClassificationResults:
143132
"""Tests for the update_url_with_classification_results function"""

0 commit comments

Comments
 (0)