First MVP
This commit is contained in:
15
tests/test_migrations.py
Normal file
15
tests/test_migrations.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from alembic import command
|
||||
from alembic.config import Config
|
||||
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.no_schema
|
||||
def test_alembic_upgrade_and_downgrade() -> None:
|
||||
cfg = Config("alembic.ini")
|
||||
command.upgrade(cfg, "head")
|
||||
command.downgrade(cfg, "base")
|
||||
command.upgrade(cfg, "head")
|
||||
Reference in New Issue
Block a user