Пример #1
0
  def setUp(self):
    """Setup PythonCheckStyleTask with Rage Checker"""
    super(TestPyStyleTask, self).setUp()
    PythonCheckStyleTask.clear_plugins()
    PythonCheckStyleTask.register_plugin(name='angry_test', subsystem=RageSubsystem)

    self.style_check = self._create_task()
    self.style_check.options.suppress = None
Пример #2
0
  def setUp(self):
    """Setup PythonCheckStyleTask with Rage Checker"""
    super(TestPyStyleTask, self).setUp()
    PythonCheckStyleTask.clear_plugins()
    PythonCheckStyleTask.register_plugin(name='angry_test', subsystem=RageSubsystem)

    self.style_check = self._create_task()
    self.style_check.options.suppress = None

    self.no_qa_line = 'no_qa_line.py'
    self.create_file(self.no_qa_line, dedent_wo_first_line("""
        print('This is not fine')
        print('This is fine')  # noqa"""))

    self.no_qa_file = "no_qa_file.py"
    self.create_file(self.no_qa_file, dedent_wo_first_line("""
        # checkstyle: noqa
        print('This is not fine')
        print('This is fine')"""))
Пример #3
0
 def tearDown(self):
   super(TestPyStyleTask, self).tearDown()
   PythonCheckStyleTask.clear_plugins()
Пример #4
0
 def setUp(self):
     super(PythonCheckStyleTaskTest, self).setUp()
     PythonCheckStyleTask.clear_plugins()
     PythonCheckStyleTask.register_plugin('print-statements',
                                          PrintStatementsSubsystem)
Пример #5
0
 def setUp(self):
   super(PythonCheckStyleTaskTest, self).setUp()
   PythonCheckStyleTask.clear_plugins()
   PythonCheckStyleTask.register_plugin('print-statements', PrintStatementsSubsystem)
Пример #6
0
 def setUp(self):
     super(PythonCheckStyleTaskTest, self).setUp()
     PythonCheckStyleTask.clear_plugins()
     PythonCheckStyleTask.register_plugin('variable-names',
                                          VariableNamesSubsystem)