Skip to content

Commit

Permalink
Merge pull request #213 from VesnaT/owannotateprojection_unconditiona…
Browse files Browse the repository at this point in the history
…l_commit

[FIX] Annotator test: Unconditional commit on new data
  • Loading branch information
JakaKokosar authored Oct 14, 2019
2 parents 59c95e1 + 7f85809 commit 5a8b8bf
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,23 +216,23 @@ def test_button_toggle(self):

def test_plot_once(self):
self.widget.setup_plot = Mock()
self.widget.commit = Mock()
self.widget.send_data = Mock()
self.send_signal(self.widget.Inputs.genes, self.genes)
self.widget.setup_plot.assert_called_once()
self.widget.setup_plot.reset_mock()
self.widget.commit.assert_called_once()
self.widget.commit.reset_mock()
self.widget.send_data.assert_called_once()
self.widget.send_data.reset_mock()
self.wait_until_stop_blocking()
self.send_signal(self.widget.Inputs.data, self.data)
self.widget.setup_plot.assert_called_once()
self.widget.commit.assert_called_once()
self.widget.send_data.assert_called_once()
self.wait_until_stop_blocking()
self.widget.setup_plot.reset_mock()
self.widget.commit.reset_mock()
self.widget.send_data.reset_mock()
self.wait_until_stop_blocking()
self.send_signal(self.widget.Inputs.secondary_data, self.secondary_data)
self.widget.setup_plot.assert_called_once()
self.widget.commit.assert_called_once()
self.widget.send_data.assert_called_once()

def test_saved_selection(self):
self.send_signal(self.widget.Inputs.genes, self.genes)
Expand Down

0 comments on commit 5a8b8bf

Please sign in to comment.