Skip to content

Commit

Permalink
tests: error on owkmeans
Browse files Browse the repository at this point in the history
  • Loading branch information
robertcv committed Jul 19, 2018
1 parent 6b6c8de commit 02c3ce2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Orange/widgets/unsupervised/tests/test_owkmeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,13 @@ def assert_all_same(l):
self.widget.smart_init = 1
assert_all_same([cluster() for _ in range(5)])

def test_error_no_attributes(self):
domain = Domain([])
table = Table.from_domain(domain, n_rows=10)
self.widget.auto_commit = True
self.send_signal(self.widget.Inputs.data, table)
self.assertTrue(self.widget.Error.no_attributes.is_shown())


if __name__ == "__main__":
unittest.main()

0 comments on commit 02c3ce2

Please sign in to comment.