canaille-globuzma/tests/backends/sql/test_alembic.py

5 lines
192 B
Python
Raw Normal View History

def test_migrations(app, backend):
"""Test downgrading back to the first revision, and then re-apply all migrations."""
backend.alembic.downgrade("base")
backend.alembic.upgrade()