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
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())
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