@@ -127,14 +127,19 @@ def _send_request(max_predictions_per_classification: int | None):
127
127
_send_request (max_predictions_per_classification = None )
128
128
129
129
def test_pipeline_config_with_binary_classifier (self ):
130
- BinaryClassifier = CLASSIFIER_CHOICES ["moth_binary" ]
130
+ binary_classifier_pipeline_choice = "moth_binary"
131
+ BinaryClassifier = CLASSIFIER_CHOICES [binary_classifier_pipeline_choice ]
131
132
BinaryClassifierResponse = make_algorithm_response (BinaryClassifier )
132
133
133
- SpeciesClassifier = CLASSIFIER_CHOICES ["quebec_vermont_moths_2023" ]
134
+ species_classifier_pipeline_choice = "quebec_vermont_moths_2023"
135
+ SpeciesClassifier = CLASSIFIER_CHOICES [species_classifier_pipeline_choice ]
134
136
SpeciesClassifierResponse = make_algorithm_response (SpeciesClassifier )
135
137
136
138
# Test using a pipeline that finishes with a full species classifier
137
- pipeline_config = make_pipeline_config_response (SpeciesClassifier )
139
+ pipeline_config = make_pipeline_config_response (
140
+ SpeciesClassifier ,
141
+ slug = species_classifier_pipeline_choice ,
142
+ )
138
143
139
144
self .assertEqual (len (pipeline_config .algorithms ), 3 )
140
145
self .assertEqual (
@@ -145,7 +150,9 @@ def test_pipeline_config_with_binary_classifier(self):
145
150
)
146
151
147
152
# Test using a pipeline that finishes only with a binary classifier
148
- pipeline_config_binary_only = make_pipeline_config_response (BinaryClassifier )
153
+ pipeline_config_binary_only = make_pipeline_config_response (
154
+ BinaryClassifier , slug = binary_classifier_pipeline_choice
155
+ )
149
156
150
157
self .assertEqual (len (pipeline_config_binary_only .algorithms ), 2 )
151
158
self .assertEqual (
0 commit comments