Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] test_owdistancematrix: Do not download data for testing #5773

Merged
merged 1 commit into from
Jan 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Orange/widgets/unsupervised/tests/test_owdistancematrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down