def test_split_migration_full_path(self): input_path = "/home/user/djangostuff/apps/the_app/migrations/0001_stuff.py" app, mig = split_migration_path(input_path) self.assertEqual(app, "the_app") self.assertEqual(mig, "0001_stuff")
def test_split_migration_path(self): input_path = "the_app/migrations/0001_stuff.py" app, mig = split_migration_path(input_path) self.assertEqual(app, "the_app") self.assertEqual(mig, "0001_stuff")
def test_split_migration_full_path(self): input_path = '/home/user/djangostuff/apps/the_app/migrations/0001_stuff.py' app, mig = split_migration_path(input_path) self.assertEqual(app, 'the_app') self.assertEqual(mig, '0001_stuff')
def __init__(self, abs_path): self.abs_path = abs_path self.app_name, self.name = split_migration_path(self.abs_path)
def test_split_migration_path(self): input_path = 'the_app/migrations/0001_stuff.py' app, mig = split_migration_path(input_path) self.assertEqual(app, 'the_app') self.assertEqual(mig, '0001_stuff')