Closed einarjohnson closed 9 months ago
You will need to adjust your env.py slightly, so that the plugin can inject the connection, documented here (or you would either need to supply a Config
that set the engine details appropriately)
@DanCardin , ah of course. Thank you kindly for such a quick response, I think I have everything sorted out on my end now.
nice! closing then. feel free to comment again if something comes up
I'm getting RuntimeError: asyncio.run() cannot be called from a running event loop
how to fix it?🤔
Hello, I am trying to write unit tests using the
pytest-alembic
package where I migrate my db schema into an in-memory sqlite db.I have defined fixtures like this:
My env.py file is like this:
When I run the following test:
I get this error:
Any help/directions would be greatly appreciated, not entirely sure what I am doing wrong here but it obviously looks like there is something wrong in how I am setting the asyncio framework up.