def test_pep8(self):
pep8style = pep8.StyleGuide([['statistics', True],
['show-sources', True],
['repeat', True],
['ignore', "E501"],
['paths', [os.path.dirname(
os.path.abspath(__file__))]]],
parse_argv=False)
report = pep8style.check_files()
assert report.total_errors == 0
评论列表
文章目录