Devuan deployment of britney2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
517 B

  1. import os
  2. import unittest
  3. import pycodestyle
  4. class TestCodeFormat(unittest.TestCase):
  5. def test_conformance(self):
  6. """Test that we conform to PEP-8."""
  7. project_dir = os.path.dirname(os.path.dirname(__file__))
  8. codestyle_cfg = os.path.join(project_dir, 'setup.cfg')
  9. style = pycodestyle.StyleGuide(config_file=codestyle_cfg)
  10. result = style.check_files('.')
  11. self.assertEqual(result.total_errors, 0,
  12. "Found code style errors (and warnings).")