@@ -149,7 +149,7 @@ def test_normalize_data(self):
149149 with patch ("Orange.preprocess.preprocess.Normalize" , wraps = Normalize ) as normalize :
150150 self .send_signal (self .widget .Inputs .data , self .data )
151151 self .assertTrue (self .widget .controls .normalize .isEnabled ())
152- self .wait_until_stop_blocking ()
152+ self .wait_until_finished ()
153153 normalize .assert_called_once ()
154154
155155 # Disable checkbox
@@ -158,7 +158,7 @@ def test_normalize_data(self):
158158 with patch ("Orange.preprocess.preprocess.Normalize" , wraps = Normalize ) as normalize :
159159 self .send_signal (self .widget .Inputs .data , self .data )
160160 self .assertTrue (self .widget .controls .normalize .isEnabled ())
161- self .wait_until_stop_blocking ()
161+ self .wait_until_finished ()
162162 normalize .assert_not_called ()
163163
164164 # Normalization shouldn't work on sparse data
@@ -169,7 +169,7 @@ def test_normalize_data(self):
169169 with patch ("Orange.preprocess.preprocess.Normalize" , wraps = Normalize ) as normalize :
170170 self .send_signal (self .widget .Inputs .data , sparse_data )
171171 self .assertFalse (self .widget .controls .normalize .isEnabled ())
172- self .wait_until_stop_blocking ()
172+ self .wait_until_finished ()
173173 normalize .assert_not_called ()
174174
175175 @patch ("Orange.projection.manifold.TSNEModel.optimize" )
@@ -192,7 +192,7 @@ def _check_exaggeration(call, exaggeration):
192192 self .wait_until_stop_blocking ()
193193 self .widget .controls .exaggeration .setValue (1 )
194194 self .widget .run_button .clicked .emit () # run with exaggeration 1
195- self .wait_until_stop_blocking ()
195+ self .wait_until_finished ()
196196 _check_exaggeration (optimize , 1 )
197197
198198 # Reset and clear state
@@ -205,7 +205,7 @@ def _check_exaggeration(call, exaggeration):
205205 self .wait_until_stop_blocking ()
206206 self .widget .controls .exaggeration .setValue (3 )
207207 self .widget .run_button .clicked .emit () # run with exaggeration 1
208- self .wait_until_stop_blocking ()
208+ self .wait_until_finished ()
209209 _check_exaggeration (optimize , 3 )
210210
211211 def test_plot_once (self ):
@@ -221,7 +221,7 @@ def test_plot_once(self):
221221 # when the result was available.
222222 self .widget .setup_plot .reset_mock ()
223223 self .widget .commit .reset_mock ()
224- self .wait_until_stop_blocking ()
224+ self .wait_until_finished ()
225225
226226 self .widget .setup_plot .assert_called_once ()
227227 self .widget .commit .assert_called_once ()
@@ -295,7 +295,7 @@ def test_invalidation_flow(self):
295295 # set global structure "on" (after the embedding is computed)
296296 w .controls .multiscale .setChecked (False )
297297 self .send_signal (w .Inputs .data , self .data )
298- self .wait_until_stop_blocking ()
298+ self .wait_until_finished ()
299299 self .assertFalse (self .widget .Information .modified .is_shown ())
300300 # All the embedding components should computed
301301 self .assertIsNotNone (w .pca_projection )
0 commit comments