Alex van Zyl
Alex van Zyl
First thanks @joowani for all the efforts on the python-arango library it's really a well-written project. I was looking for an async solution and judging from the comments it seems...
Also would like to add after reading the documentation it would also be possible to override your dependencies. See [Testing a Database](https://fastapi.tiangolo.com/advanced/testing-database/#dependency-override) and [Settings and testing](https://fastapi.tiangolo.com/advanced/settings/#settings-and-testing). So in this instance...
Here is the solution I ended up going with. `tests/utils/test_db.py` ```python from pydantic import PostgresDsn from sqlalchemy.engine import create_engine from sqlalchemy.orm.session import sessionmaker from app.core.config import settings SQLALCHEMY_DATABASE_URL = PostgresDsn.build(...
@lazToum that's actually perfect! I was running my tests inside an already running container so I resorted to using [SQLAlchemy-Utils](https://github.com/kvesteri/sqlalchemy-utils) to check if the DB exists and create it. ```...