Spaces:
Running on T4
Running on T4
|
Download backend/e2e/README.md from modventures/baseball-engine: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/backend/e2e/README.md
- Command line
-
hf download hf://spaces/modventures/baseball-engine/backend/e2e/README.md
-
curl -L -o README.md https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/backend/e2e/README.md
1.17 kB
End-to-end QA suites
These suites run against a running API, by default http://127.0.0.1:8000; set BASE_URL to test another server. They use the real database and storage the server is configured with.
Every suite creates its own accounts (qa-<suite>-<runid>-<n>@example.com) and deletes them again at the end, along with their media.
cd backend
.venv/bin/python e2e/qa_accounts_teams.py # auth, /me, teams, devices, billing error paths
.venv/bin/python e2e/qa_sessions_reports.py # uploads, sessions, swing report, plan limit, drills, catalog
.venv/bin/python e2e/qa_coach_loop.py # roster, queue, coach access, reviews, leaving a team
.venv/bin/python e2e/qa_coaching_workflow.py # settings/consent, staff codes, threads+voice notes, goals, assignments, arm care, academy, cross-tenant
Each check prints PASS or FAIL. The exit code is 1 if any check fails.
The coaching-workflow suite needs a server started with ENV=test (or a configured Gemini key), because it posts swing reports, and working object storage for presigned audio/video uploads. It takes a few minutes because the login limiter slows the final cleanup checks.