16 lines
322 B
Python
16 lines
322 B
Python
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")
|