britney2-ubuntu/tests/test_pycodestyle.py
edawine ed2aef3db1
Added pycodestyle checks
Changed .travis.yml to download pep8 module
Added pycodestyle conformance checks to be run by nosetests
2019-01-19 12:03:32 +00:00

13 lines
340 B
Python

import unittest
import pep8
class TestCodeFormat(unittest.TestCase):
def test_conformance(self):
"""Test that we conform to PEP-8."""
style = pep8.StyleGuide()
result = style.check_files('.')
self.assertEqual(result.total_errors, 0,
"Found code style errors (and warnings).")