2024-02-05 19:19:29 +00:00
|
|
|
import pycodestyle
|
2024-02-23 21:15:06 +00:00
|
|
|
from tests.base_test import TestBase
|
2024-02-05 19:19:29 +00:00
|
|
|
|
|
|
|
# Tests files to ensure they conform to pep8 standards
|
|
|
|
|
|
|
|
|
2024-02-23 21:15:06 +00:00
|
|
|
class TestPep8(TestBase):
|
|
|
|
def test_pep8_conformance(self):
|
|
|
|
"""Test that we conform to PEP8."""
|
|
|
|
pep8style = pycodestyle.StyleGuide()
|
|
|
|
dirs = ["./controllers", "./models", "./scripts", "./tests", "./utils"]
|
|
|
|
result = pep8style.check_files(dirs)
|
|
|
|
assert result.total_errors == 0
|