Esempio n. 1
0
    def test_instantiates_runner(self, mock_prep_docs):
        "Concrete runner must be instantiated using the job's raw files"
        mock_docs = mock_prep_docs.return_value

        run_audit(self.mock_job.pk)

        mock_prep_docs.assert_called_once_with(self.mock_job.pk)
        self.mock_runner_cls.assert_called_once_with(mock_docs)
Esempio n. 2
0
 def test_calls_runner_run_method(self):
     "Concrete runner `run` method must be called"
     run_audit(self.mock_job.pk)
     self.mock_runner.run.assert_called_once_with()