Ejemplo n.º 1
0
 def test_split_migration_full_path(self):
     input_path = '/home/user/djangostuff/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')
Ejemplo n.º 2
0
 def test_split_migration_path(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')