diff --git a/Orange/widgets/unsupervised/tests/test_owlouvain.py b/Orange/widgets/unsupervised/tests/test_owlouvain.py index a74a0494a0c..bf7f758eb28 100644 --- a/Orange/widgets/unsupervised/tests/test_owlouvain.py +++ b/Orange/widgets/unsupervised/tests/test_owlouvain.py @@ -15,11 +15,16 @@ def setUp(self): self.widget = self.create_widget( OWLouvainClustering, stored_settings={'auto_commit': False} ) + self.iris = Table('iris') def tearDown(self): self.widget.onDeleteWidget() super().tearDown() + def test_removing_data(self): + self.send_signal(self.widget.Inputs.data, self.iris) + self.send_signal(self.widget.Inputs.data, None) + def test_clusters_ordered_by_size(self): """Cluster names should be sorted based on the number of instances.""" x1 = np.array([[0, 0]] * 20)