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

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

        self.assertEqual(
            [M1, M2],
            list(all_migrations()),
        )
Esempio 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()]
Esempio 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()
     ]
Esempio 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()
     ]