Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setUp(self):
self.reporter = GenericDiffReporterFactory().get_first_working()
def __init__(self):
factory = GenericDiffReporterFactory()
reporters = list(factory.get_all_reporters())
reporters.append(CommandLineReporter())
super(DiffReporter, self).__init__(*reporters)
def test_returns_none_when_files_are_same_files(self):
namer = get_default_namer()
writer = StringWriter("b")
reporter = GenericDiffReporterFactory().get_first_working()
approver = FileApprover()
error = approver.verify(namer, writer, reporter)
self.assertEqual(None, error)
def setUp(self):
self.reporter = GenericDiffReporterFactory().get('BeyondCompare4Mac')
def setUp(self):
self.factory = GenericDiffReporterFactory()
self.reporter = self.factory.get_first_working()
if os.path.exists(self.tmp_dir):
shutil.rmtree(self.tmp_dir)
os.mkdir(self.tmp_dir)
def setUp(self):
self.reporter = GenericDiffReporterFactory().get_first_working()