def test_migrate_iter(fx_session, fx_source_store, fx_migration): dst = SourceStore() plan = migrate(fx_session, Base, fx_source_store, dst) assert dst.files == {} for _ in plan: pass assert fx_source_store.files == dst.files
def test_migrate_execute(fx_session, fx_source_store, fx_migration): dst = SourceStore() plan = migrate(fx_session, Base, fx_source_store, dst) assert dst.files == {} plan.execute() assert fx_source_store.files == dst.files