diff --git a/Orange/widgets/evaluate/tests/test_owpredictions.py b/Orange/widgets/evaluate/tests/test_owpredictions.py index 9285b540f97..4f719fa48a2 100644 --- a/Orange/widgets/evaluate/tests/test_owpredictions.py +++ b/Orange/widgets/evaluate/tests/test_owpredictions.py @@ -17,7 +17,8 @@ from Orange.data import Table, Domain, DiscreteVariable from Orange.modelling import ConstantLearner, TreeLearner from Orange.evaluation import Results -from Orange.widgets.tests.utils import excepthook_catch, possible_duplicate_table +from Orange.widgets.tests.utils import excepthook_catch, \ + possible_duplicate_table from Orange.widgets.utils.colorpalette import ColorPaletteGenerator @@ -421,7 +422,6 @@ def test_unique_output_domain(self): self.send_signal(self.widget.Inputs.predictors, predictor) output = self.get_output(self.widget.Outputs.predictions) - print(output.domain) self.assertEqual(output.domain.metas[0].name, 'constant (1)') diff --git a/Orange/widgets/visualize/tests/test_owsilhouetteplot.py b/Orange/widgets/visualize/tests/test_owsilhouetteplot.py index 5341d05fd10..08902acb347 100644 --- a/Orange/widgets/visualize/tests/test_owsilhouetteplot.py +++ b/Orange/widgets/visualize/tests/test_owsilhouetteplot.py @@ -13,6 +13,7 @@ from Orange.widgets.utils.annotated_data import ANNOTATED_DATA_SIGNAL_NAME from Orange.widgets.visualize.owsilhouetteplot import OWSilhouettePlot from Orange.widgets.tests.base import WidgetTest, WidgetOutputsTestMixin +from Orange.widgets.tests.utils import possible_duplicate_table from Orange.widgets.utils.state_summary import format_summary_details @@ -252,6 +253,15 @@ def test_summary(self): self.assertEqual(info._StateInfo__output_summary.brief, "") self.assertEqual(info._StateInfo__output_summary.details, no_output) + def test_unique_output_domain(self): + widget = self.widget + data = possible_duplicate_table('Silhouette (iris)') + matrix = Orange.distance.Euclidean(data) + self.send_signal(widget.Inputs.data, matrix, widget=widget) + + output = self.get_output(self.widget.Outputs.annotated_data) + self.assertEqual(output.domain.metas[0].name, 'Silhouette (iris) (1)') + if __name__ == "__main__": unittest.main()