Skip to content

Commit

Permalink
tests: check owhierarchicalclustering selection
Browse files Browse the repository at this point in the history
  • Loading branch information
robertcv authored and ales-erjavec committed Nov 23, 2018
1 parent e4cbbe7 commit 28441ff
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,12 @@ def test_output_cut_ratio(self):
def _mouse_button_press_event(self):
return QMouseEvent(QEvent.MouseButtonPress, QPoint(100, 10),
Qt.LeftButton, Qt.LeftButton, Qt.NoModifier)

def test_retain_selection(self):
"""Hierarchical Clustering didn't retain selection. GH-1563"""
self.send_signal(self.widget.Inputs.distances, self.distances)
self._select_data()
self.assertIsNotNone(self.get_output(self.widget.Outputs.selected_data))
self.send_signal(self.widget.Inputs.distances, self.distances)
self.assertIsNotNone(self.get_output(self.widget.Outputs.selected_data))

0 comments on commit 28441ff

Please sign in to comment.