Added a pyflakes test.
- Legacy-Id: 7505
This commit is contained in:
parent
70e0fbba00
commit
0643f3c542
17
ietf/utils/tests.py
Normal file
17
ietf/utils/tests.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
from __future__ import print_function
|
||||
|
||||
import os.path
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
from ietf.utils.management.commands import pyflakes
|
||||
from ietf.utils.test_utils import TestCase
|
||||
|
||||
|
||||
class PyFlakesTestCase(TestCase):
|
||||
|
||||
def test_pyflakes(self):
|
||||
path = os.path.join(settings.BASE_DIR)
|
||||
warnings = []
|
||||
warnings = pyflakes.checkPaths([path], verbosity=0)
|
||||
self.assertEqual([str(w) for w in warnings], [])
|
Loading…
Reference in a new issue