Skip to content

Commit 0643f3c

Browse files
committed
Added a pyflakes test.
- Legacy-Id: 7505
1 parent 70e0fbb commit 0643f3c

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

ietf/utils/tests.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from __future__ import print_function
2+
3+
import os.path
4+
5+
from django.conf import settings
6+
7+
from ietf.utils.management.commands import pyflakes
8+
from ietf.utils.test_utils import TestCase
9+
10+
11+
class PyFlakesTestCase(TestCase):
12+
13+
def test_pyflakes(self):
14+
path = os.path.join(settings.BASE_DIR)
15+
warnings = []
16+
warnings = pyflakes.checkPaths([path], verbosity=0)
17+
self.assertEqual([str(w) for w in warnings], [])

0 commit comments

Comments
 (0)