Exemplo n.º 1
0
 def test_all(self):
     
     M1 = Migrations(__import__("fakeapp", {}, {}, ['']))
     M2 = Migrations(__import__("otherfakeapp", {}, {}, ['']))
     
     self.assertEqual(
         [M1, M2],
         list(all_migrations()),
     )
Exemplo n.º 2
0
    def test_all(self):

        M1 = Migrations(__import__("fakeapp", {}, {}, ['']))
        M2 = Migrations(__import__("otherfakeapp", {}, {}, ['']))

        self.assertEqual(
            [M1, M2],
            list(all_migrations()),
        )
Exemplo n.º 3
0
 def get_available_migrations(self):
     return [(app_migrations.app_label(),
              set(m.name() for m in app_migrations))
             for app_migrations in all_migrations()]
Exemplo n.º 4
0
 def get_available_migrations(self):
     return [
         (app_migrations.app_label(), set(m.name() for m in app_migrations))
         for app_migrations in all_migrations()
     ]
Exemplo n.º 5
0
 def get_available_migrations(self):
     from south.migration.base import all_migrations
     return [
         (app_migrations.app_label(), set(m.name() for m in app_migrations))
         for app_migrations in all_migrations()
     ]