示例#1
0
def no_qa_file(request):
  """Py Test fixture to create a testing file for whole file filters"""
  request.cls.no_qa_file = PythonFile.from_statement(textwrap.dedent("""
      # checkstyle: noqa
      print('This is not fine')
      print('This is fine')
  """))
示例#2
0
def no_qa_line(request):
    """Py Test fixture to create a testing file for single line filters"""
    request.cls.no_qa_line = PythonFile.from_statement(
        textwrap.dedent("""
    print('This is not fine')
    print('This is fine')  # noqa
  """))
示例#3
0
def no_qa_line(request):
  """Py Test fixture to create a testing file for single line filters"""
  request.cls.no_qa_line = PythonFile.from_statement(textwrap.dedent("""
    print('This is not fine')
    print('This is fine')  # noqa
  """))