@@ -281,19 +281,19 @@ def test_x_label(self):
281281 self .send_signal (self .widget .Inputs .model , self .rf_cls )
282282 self .wait_until_finished ()
283283 label : QGraphicsTextItem = self .widget .plot .bottom_axis .label
284- self .assertEqual ( label . toPlainText (), "Decrease in AUC " )
284+ self .assertIn ( "Decrease in AUC" , label . toPlainText () )
285285
286286 self .send_signal (self .widget .Inputs .data , self .housing )
287287 self .send_signal (self .widget .Inputs .model , self .rf_reg )
288288 self .wait_until_finished ()
289289 label : QGraphicsTextItem = self .widget .plot .bottom_axis .label
290- self .assertEqual ( label . toPlainText (), "Decrease in R2 " )
290+ self .assertIn ( "Decrease in R2" , label . toPlainText () )
291291
292292 score_cb : QComboBox = self .widget ._score_combo
293293 simulate .combobox_activate_item (score_cb , "MSE" )
294294 self .wait_until_finished ()
295295 label : QGraphicsTextItem = self .widget .plot .bottom_axis .label
296- self .assertEqual ( label . toPlainText (), "Increase in MSE " )
296+ self .assertIn ( "Increase in MSE" , label . toPlainText () )
297297
298298 @unittest .mock .patch ("orangecontrib.explain.widgets."
299299 "owpermutationimportance.OWPermutationImportance.run" )
0 commit comments