Skip to content

change(FastAPI): run test_initdb.py ahead of time in docker

Kevin Morris requested to merge kevr/aurweb:docker-pytest-pre-initdb into pu

In some cases, when tests fail through Docker, the database ends up in an invalid state. This causes subsequent runs to error out with non-sensical DB errors. The test_initdb.py test suite runs tests which setup every modifiable table in the database, so let's just run it first here to avoid any invalid test DB state.

Signed-off-by: Kevin Morris kevr@0cost.org

Merge request reports