Python Tests
We use Pytest for unit testing. We also use ./backend/pyproject.toml to configure Pytest. There are two ways to run tests check:
Manually:
docker compose -f ./docker/docker-compose.yaml up -d # this will start the PostgreSQL Database cd ./backend uv run pytest -vv cd - docker compose -f ./docker/docker-compose.yaml down # this will stop the PostgreSQL DatabaseVia script (run from project root), this will also run formatting, lint and type annotation check:
./scripts/linting.bash --backend
Converted and distributed by TomeVault — claim your Tome and manage your conversions.