https://dev.kronoz.win/r/marzneshin.git
| 1 |
879288b |
Dawsh |
1y ago |
import pytest |
| 2 |
879288b |
Dawsh |
1y ago |
from pytest_alembic.tests import ( |
| 3 |
879288b |
Dawsh |
1y ago |
test_model_definitions_match_ddl, |
| 4 |
879288b |
Dawsh |
1y ago |
test_single_head_revision, |
| 5 |
879288b |
Dawsh |
1y ago |
test_up_down_consistency, |
| 6 |
879288b |
Dawsh |
1y ago |
test_upgrade, |
| 7 |
879288b |
Dawsh |
1y ago |
) |
| 8 |
879288b |
Dawsh |
1y ago |
|
| 9 |
879288b |
Dawsh |
1y ago |
|
| 10 |
879288b |
Dawsh |
1y ago |
@pytest.mark.tryfirst |
| 11 |
879288b |
Dawsh |
1y ago |
def test_model_definitions_match_ddl(alembic_engine, alembic_config): |
| 12 |
879288b |
Dawsh |
1y ago |
if "sqlite" in alembic_engine.url.drivername: |
| 13 |
879288b |
Dawsh |
1y ago |
pytest.skip("Skipping DDL test for SQLite database") |
| 14 |
879288b |
Dawsh |
1y ago |
from pytest_alembic.tests import test_model_definitions_match_ddl |
| 15 |
879288b |
Dawsh |
1y ago |
|
| 16 |
879288b |
Dawsh |
1y ago |
test_model_definitions_match_ddl(alembic_engine, alembic_config) |