diff --git a/testing_requirements.txt b/testing_requirements.txt index de39aaf..305e39b 100644 --- a/testing_requirements.txt +++ b/testing_requirements.txt @@ -1,3 +1,4 @@ nose>=1.3.7 pep8>=1.6.2 +pyflakes>=0.9.2 BeautifulSoup4>=4.4.0 diff --git a/tests/test_style.py b/tests/test_style.py index 87ce734..badeaaa 100644 --- a/tests/test_style.py +++ b/tests/test_style.py @@ -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