Skip to content

Commit 2e2ca17

Browse files
authored
Merge pull request #5773 from ajdapretnar/test-fix
[FIX] test_owdistancematrix: Do not download data for testing
2 parents 41685e1 + 771983e commit 2e2ca17

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Orange/widgets/unsupervised/tests/test_owdistancematrix.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,18 @@ def test_unconditional_commit_on_new_signal(self):
4848
commit.assert_called()
4949

5050
def test_labels(self):
51-
grades = Table.from_url("https://datasets.biolab.si/core/grades-two.tab")
51+
x, y = (ContinuousVariable(c) for c in "xy")
52+
s = StringVariable("s")
53+
grades = Table.from_list(
54+
Domain([x, y], [], [s]),
55+
[[91.0, 89.0, "Bill"],
56+
[51.0, 100.0, "Cynthia"],
57+
[9.0, 61.0, "Demi"],
58+
[49.0, 92.0, "Fred"],
59+
[91.0, 49.0, "George"]
60+
]
61+
)
62+
5263
distances = Euclidean(grades)
5364
self.widget.set_distances(distances)
5465
ac = self.widget.annot_combo

0 commit comments

Comments
 (0)