From 9acf33dea89d9d81873398d0ca5955ebf5e16b58 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sun, 8 May 2016 18:04:56 +0200 Subject: [PATCH] remove redundant pep8-style-test --- tests/test_style.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/tests/test_style.py b/tests/test_style.py index f456aa7..a647dfb 100644 --- a/tests/test_style.py +++ b/tests/test_style.py @@ -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