Esempio n. 1
0
 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))
Esempio n. 2
0
 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))
Esempio n. 3
0
 def setUp(self):
     self.problems = Problems()
     self.tool = Py3k(self.problems, base_path=root_dir)
Esempio n. 4
0
 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))
Esempio n. 5
0
 def setUp(self):
     self.problems = Problems()
     self.tool = Py3k(self.problems)