Esempio n. 1
0
    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)
Esempio n. 2
0
    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)
Esempio n. 3
0
    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)
Esempio n. 4
0
    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)