def test_process_files__config_option_list(self): tool = Py3k(self.problems, {'ignore': ['W1638', 'E1601']}, root_dir) tool.process_files([self.fixtures.has_errors]) problems = self.problems.all(self.fixtures.has_errors) self.assertEqual(0, len(problems))
def test_process_files__ignore_pattern_miss(self): tool = Py3k(self.problems, {'ignore-patterns': 'foo.*'}, root_dir) tool.process_files([self.fixtures.has_errors]) problems = self.problems.all(self.fixtures.has_errors) self.assertEqual(2, len(problems))
def setUp(self): self.problems = Problems() self.tool = Py3k(self.problems, base_path=root_dir)
def test_process_files__config_option_str(self): tool = Py3k(self.problems, {'ignore': 'W1638,E1601'}) tool.process_files([self.fixtures.has_errors]) problems = self.problems.all(self.fixtures.has_errors) eq_(0, len(problems))
def setUp(self): self.problems = Problems() self.tool = Py3k(self.problems)