Exemple #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
Exemple #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')"""))
Exemple #3
0
 def setUp(self):
     super(PythonCheckStyleTaskTest, self).setUp()
     PythonCheckStyleTask.clear_plugins()
     PythonCheckStyleTask.register_plugin('print-statements',
                                          PrintStatementsSubsystem)
Exemple #4
0
 def setUp(self):
   super(PythonCheckStyleTaskTest, self).setUp()
   PythonCheckStyleTask.clear_plugins()
   PythonCheckStyleTask.register_plugin('print-statements', PrintStatementsSubsystem)
Exemple #5
0
 def setUp(self):
     super(PythonCheckStyleTaskTest, self).setUp()
     PythonCheckStyleTask.clear_plugins()
     PythonCheckStyleTask.register_plugin('variable-names',
                                          VariableNamesSubsystem)