Пример #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_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')"""))
Пример #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"""))
Пример #4
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"""))