Example #1
0
 def establish_that_a_context_errored(self):
     self.plugin = reporting.ExitCodeReporter()
     self.plugin.unexpected_error(Exception())
Example #2
0
 def establish_that_a_context_errored(self):
     self.plugin = reporting.ExitCodeReporter()
     self.plugin.test_class_errored(type('', (), {}), Exception())
Example #3
0
 def establish_that_an_assertion_errored(self):
     self.plugin = reporting.ExitCodeReporter()
     self.plugin.assertion_errored(lambda: None, Exception())
Example #4
0
 def establish_that_a_context_errored(self):
     self.plugin = reporting.ExitCodeReporter()
     self.plugin.context_errored('', None, Exception())
Example #5
0
 def in_the_context_of_a_successful_run(self):
     self.plugin = reporting.ExitCodeReporter()