Testing
How to run the tests.
Tests cover the backend, policy checks and the extension. Run them before opening a change.
bash
python3 -m pytest -q # backend and policy tests
node tests/extension/background_audit.js # extension service worker
python3 tests/extension/run_submission_tests.pyWhat the suites cover
- Backend and policy tests: API behaviour and entitlement/authorization rules.
- Extension service worker audit: the background worker's static behaviour.
- Submission tests: the run and submission gates.