canaille-globuzma/tests/backends/sql/test_alembic.py
2025-01-10 12:32:18 +01:00

4 lines
192 B
Python

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()