From b36bc48a35d560882cf1e4b97bd1320a73d08633 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Fri, 4 Sep 2015 23:03:26 +0200 Subject: [PATCH] add pyflakes-tests --- testing_requirements.txt | 1 + tests/test_style.py | 7 +++++++ 2 files changed, 8 insertions(+) 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