1 from django.test import TestCase
6 class PyflakesTest(TestCase):
8 topdir = os.path.dirname(os.path.realpath(__file__))
11 for folder, subfolders, files in os.walk(topdir):
12 if 'migrations' in subfolders:
13 subfolders.remove('migrations')
16 if not file.endswith('.py'):
18 self.pythonfiles += [os.path.join(folder, file)]
20 def test_pyflakes(self):
21 for file in self.pythonfiles:
22 self.assertEqual(pyflakes.api.checkPath(file), 0)