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