File: test_all.py

package info (click to toggle)
pycodestyle 2.12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 624 kB
  • sloc: python: 4,697; makefile: 135; sh: 12
file content (12 lines) | stat: -rw-r--r-- 407 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
import os.path

import pycodestyle
from testing.support import ROOT


def test_own_dog_food():
    style = pycodestyle.StyleGuide(select='E,W', quiet=True)
    files = [pycodestyle.__file__, __file__, os.path.join(ROOT, 'setup.py')]
    report = style.init_report(pycodestyle.StandardReport)
    report = style.check_files(files)
    assert list(report.messages) == ['W504'], f'Failures: {report.messages}'