def test_simple(self):
     verify(
         "Hello",
         options=Options().with_reporter(
             GenericDiffReporter.create(
                 r"C:\my\favorite\diff\utility.exe")),
     )
 def instantiate_reporter_for_test() -> GenericDiffReporter:
     program = r"C:\Windows\System32\help.exe" if is_windows_os() else "echo"
     reporter = GenericDiffReporter.create(program)
     setattr(reporter, "run_command", lambda command_array: None)
     return reporter
示例#3
0
 def setUp(self):
     reporter = MultiReporter(GenericDiffReporter.create('diff'),
                              CommandLineReporter())
     approvals.set_default_reporter(reporter)
 def instantiate_reporter_for_test():
     reporter = GenericDiffReporter.create('echo')
     reporter.run_command = lambda command_array: None
     return reporter
 def setUp(self) -> None:
     reporter = MultiReporter(GenericDiffReporter.create("diff"),
                              CommandLineReporter())
示例#6
0
 def instantiate_reporter_for_test():
     program = r'C:\Windows\System32\help.exe' if is_windows_os(
     ) else 'echo'
     reporter = GenericDiffReporter.create(program)
     reporter.run_command = lambda command_array: None
     return reporter