Skip to content

Commit

Permalink
Interface.run: test against override_defaults=None
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarrasch committed Feb 25, 2015
1 parent 978d0c6 commit 618970a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/interface_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ def test_interface_run_positive_path(self):

self.assertTrue(self._run_interface())

def test_interface_default_override_defaults(self):
self.worker.add = Mock(side_effect=[True, True])
self.worker.run = Mock(return_value=True)

self.assertTrue(Interface.run([self.task_a, self.task_b], self.worker_scheduler_factory))

def test_interface_run_with_add_failure(self):
self.worker.add = Mock(side_effect=[True, False])
self.worker.run = Mock(return_value=True)
Expand Down

0 comments on commit 618970a

Please sign in to comment.