Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In test_alembic.py, test upgrade/downgrade more efficiently
Walking the change path ourselves and calling alembic for each revision is slow, and doesn't match how migrations are applied in production. Simply calling alembic once with the target revision is more accurate and much faster since it doesn't incur the overhead of the extra invocations. Also, since test_alembic_migration_downgrade upgrades to the target migration before downgrading to base, test_alembic_migration_upgrade is superfluous. I've renamed test_alembic_migration_downgrade to reflect what it does.
- Loading branch information