-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
170 add validation error if an unknown exception happens during validation #171
170 add validation error if an unknown exception happens during validation #171
Conversation
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
…s-during-validation'
tests/migrations/test_migrations.py
Outdated
def test_migration_to_0040045eae14(alembic_runner: MigrationContext, alembic_engine: Engine): | ||
alembic_runner.migrate_up_to("0040045eae14") | ||
|
||
|
||
def test_migration_to_c89920be2e66(alembic_runner: MigrationContext, alembic_engine: Engine): | ||
alembic_runner.migrate_up_to("c89920be2e66") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are the scripts specific to postgres as sqlite doesn't support type changes, right? I don't think we need to have just the empty tests here then, I think the imports at the top of the file cover them already if we just want to make sure the scripts run, but not worrying about the results:
from pytest_alembic.tests import (
test_single_head_revision, # noqa: F401
test_up_down_consistency, # noqa: F401
test_upgrade, # noqa: F401
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok cool, yeah that was the purpose, just making sure the normal upgrade/downgrade alembic processes work, we don't have multiple heads, etc.
…tion-happens-during-validation
…tion-happens-during-validation
…tion-happens-during-validation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #170