예제 #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
  """))