-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
run alembic migrations instead of using sqlalchemy to migrate test db #169
run alembic migrations instead of using sqlalchemy to migrate test db #169
Conversation
Not sure why the github actions workflow isn't running |
The CI is currently set up only to run when a PR is opened. I need (or you could if you fancy it) change this so it runs on every change |
@peterdudfield I've fixed this PR and also added #171 to add the |
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.
As long as the tests pass, I'm happy with this.
Thanks @mduffin95 for doing this, let me know if this is ready
@peterdudfield yep it's ready |
Initial change required for work on #165.
Currently the tests do not seem to test the actual alembic migrations but instead use sqlalchemy directly to build the DB schema. I guess this is problematic because it's not really testing what's in prod.
Because as part of #165 I'd like to use a DB trigger it makes sense to instead apply the alembic migrations so that it can be tested. The existing test setup wouldn't add the trigger.