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