Rename to linter

This commit is contained in:
david_wobrock committed 2017-04-05 14:41:44 +02:00
1 parent 69cf2fe7b5
commit 3b7d567d72
3 files changed
+17 -19

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import unittest
from migration_linter import MigrationLinter
class LinterTest(unittest.TestCase):
def test_split_migration_path(self):
input_path = 'apps/the_app/migrations/0001_stuff.py'
app, mig = MigrationLinter._split_migration_path(input_path)
self.assertEqual(app, 'the_app')
self.assertEqual(mig, '0001_stuff')
def test_split_migration_path_2(self):
input_path = 'the_app/migrations/0001_stuff.py'
app, mig = MigrationLinter._split_migration_path(input_path)
self.assertEqual(app, 'the_app')
self.assertEqual(mig, '0001_stuff')