From 771983e3c5524c18ab04fcf3d8d1bf27ea021069 Mon Sep 17 00:00:00 2001 From: Ajda Pretnar Date: Mon, 10 Jan 2022 10:33:17 +0100 Subject: [PATCH] Fix test_owdistancematrix --- .../unsupervised/tests/test_owdistancematrix.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Orange/widgets/unsupervised/tests/test_owdistancematrix.py b/Orange/widgets/unsupervised/tests/test_owdistancematrix.py index cce1176fcf1..acd31c5ea5b 100644 --- a/Orange/widgets/unsupervised/tests/test_owdistancematrix.py +++ b/Orange/widgets/unsupervised/tests/test_owdistancematrix.py @@ -48,7 +48,18 @@ def test_unconditional_commit_on_new_signal(self): commit.assert_called() def test_labels(self): - grades = Table.from_url("https://datasets.biolab.si/core/grades-two.tab") + x, y = (ContinuousVariable(c) for c in "xy") + s = StringVariable("s") + grades = Table.from_list( + Domain([x, y], [], [s]), + [[91.0, 89.0, "Bill"], + [51.0, 100.0, "Cynthia"], + [9.0, 61.0, "Demi"], + [49.0, 92.0, "Fred"], + [91.0, 49.0, "George"] + ] + ) + distances = Euclidean(grades) self.widget.set_distances(distances) ac = self.widget.annot_combo