示例#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)