diff --git a/test/interface_test.py b/test/interface_test.py index 918c52f842..398ed4ed3c 100644 --- a/test/interface_test.py +++ b/test/interface_test.py @@ -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)