Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def instantiate_reporter_for_test():
reporter = GenericDiffReporter.create('echo')
reporter.run_command = lambda command_array: None
return reporter
def setUp(self):
reporter = MultiReporter(GenericDiffReporter.create('diff'), CommandLineReporter())
approvals.set_default_reporter(reporter)