示例#1
0
 def post(self, key):
     migration = migrations.find(key)
     migration().run()
示例#2
0
 def test_register_find(self):
     migrations.clear()
     migrations.register(SampleMigration)
     m = migrations.find("SampleMigration")
     self.assertTrue(m.__name__, "SampleMigration")
示例#3
0
 def test_register_cant_find(self):
     migrations.clear()
     m = migrations.find("SampleMigration")
     self.assertEquals(m, None)
示例#4
0
 def post(self, key):
     migration = migrations.find(key)
     migration().run()