add pyflakes-tests

This commit is contained in:
Thor77 2015-09-04 23:03:26 +02:00
parent 654ac87286
commit b36bc48a35
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,4 @@
nose>=1.3.7
pep8>=1.6.2
pyflakes>=0.9.2
BeautifulSoup4>=4.4.0

View File

@ -1,4 +1,5 @@
import pep8
from pyflakes.api import checkPath
from glob import glob
@ -9,3 +10,9 @@ def test_pep8_comformance():
files.append('tsstats.py')
result = pep8style.check_files(files)
assert result.total_errors == 0
def test_pyflakes():
''' Test that at least tsstats.py conforms to PyFlakes '''
result = checkPath('tsstats.py')
assert result == 0