File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff 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
142131class TestUpdateUrlWithClassificationResults :
143132 """Tests for the update_url_with_classification_results function"""
You can’t perform that action at this time.
0 commit comments