def setUp(self): Exodus.load_migrations('tests/jaweson_migrations') # import the migrations AFTER we initialise exodus self.migration1 = importlib.import_module('tests.jaweson_migrations.2015_03_10_add_b').Migration self.migration2 = importlib.import_module('tests.jaweson_migrations.2015_10_10_move_keys').Migration
def test_reload(self): assert len(Exodus.migrations) == 2 Exodus.migrations = None Exodus.load_migrations('tests/migrations') assert len(Exodus.migrations) == 2