handle linting a project in pwd

When calling "django-migration-linter ."
be able to handle it (especially with cache)
This commit is contained in:
David Wobrock committed 2019-01-20 12:17:11 +01:00
1 parent 75c969c6a9
commit 009153fbf4
5 files changed
+30 -3

No files matched your search

+6
View File
@@ -58,6 +58,12 @@ class UtilityFunctionTest(unittest.TestCase):
self.assertEqual(splitted[1], 'bar')
self.assertEqual(splitted[2], 'fuz.py')
def test_split_folder_path(self):
splitted = split_path('/foo/bar')
self.assertEqual(len(splitted), 2)
self.assertEqual(splitted[0], 'foo')
self.assertEqual(splitted[1], 'bar')
def test_split_migration_long_path(self):
input_path = 'apps/the_app/migrations/0001_stuff.py'
app, mig = split_migration_path(input_path)