tests passing

This commit is contained in:
counterweight 2025-12-18 23:33:32 +01:00
parent 322bdd3e6e
commit b173b47925
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
18 changed files with 1414 additions and 93 deletions

View file

@ -3,6 +3,13 @@ set -e
cd "$(dirname "$0")/.."
# Load environment variables if .env exists
if [ -f .env ]; then
set -a
source .env
set +a
fi
# Kill any existing backend
pkill -f "uvicorn main:app" 2>/dev/null || true
sleep 1
@ -10,6 +17,15 @@ sleep 1
# Start db
docker compose up -d db
# Wait for db to be ready
sleep 2
# Seed the database with roles and test users
cd backend
echo "Seeding database..."
uv run python seed.py
cd ..
# Start backend (SECRET_KEY should be set via .envrc or environment)
cd backend
uv run uvicorn main:app --port 8000 &