Can't get alembic api working #1631
Unanswered
rohitsodhia
asked this question in
Usage Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to get alembic to run on my test database in a pytest fixture:
But when I run tests, I get the error that the relation I'm testing against doesn't exist, which seems to indicate alembic never ran? Also, I don't love that this will modify my logging settings. I'm not sure if there's a better way to address this problem.
I've moved the alembic code to a separate script, to just test it on it's own, but while the script takes a second or two to run, there's no output, and no changes to my db.
I was originally looking at how to get alembic to run against multiple databases at once (or choose the database) via the cli, but no luck there.
Beta Was this translation helpful? Give feedback.
All reactions