def test_passes_on_run_to_database(self, Database): db = Database() runner = TestRunner(database=db, stream=self.stream, growler=None) runner.run(self.test) db.add_run.assert_called_once_with() db.finish_run.assert_called_once_with(True)
def test_passes_on_partial_run_to_database(self, Database): db = Database() runner = TestRunner( database=db, full_suite=False, stream=self.stream, growler=None) runner.run(self.test) db.add_run.assert_called_once_with() db.finish_run.assert_called_once_with(False)
def test_passes_on_partial_run_to_database(self, Database): db = Database() runner = TestRunner(database=db, full_suite=False, stream=self.stream, growler=None) runner.run(self.test) db.add_run.assert_called_once_with() db.finish_run.assert_called_once_with(False)