remove redundant pep8-style-test

This commit is contained in:
Thor77 2016-05-08 18:04:56 +02:00
parent 7b53fc85de
commit 9acf33dea8
1 changed files with 2 additions and 14 deletions

View File

@ -1,19 +1,7 @@
from glob import glob
import pep8
from pyflakes.api import checkPath
def test_pep8_comformance():
''' Test that the code conforms to PEP8 '''
pep8style = pep8.StyleGuide(config_file='.pep8')
files = glob('tests/*.py')
files.append('tsstats.py')
result = pep8style.check_files(files)
assert result.total_errors == 0
import pyflakes.api
def test_pyflakes():
''' Test that at least tsstats.py conforms to PyFlakes '''
result = checkPath('tsstats.py')
result = pyflakes.api.checkPath('**/*.py')
assert result == 0