chore: Update pytest duration reporting in pyproject.toml and refine testing documentation

This commit is contained in:
Anish Sarkar 2026-02-25 18:36:55 +05:30
parent f52090391a
commit 2fef971fa9
2 changed files with 3 additions and 7 deletions

View file

@ -9,14 +9,10 @@ SurfSense uses [pytest](https://docs.pytest.org/) for end-to-end testing. Tests
Before running tests, make sure the full backend stack is running:
- **FastAPI backend** (`uv run main.py`)
- **FastAPI backend**
- **PostgreSQL + pgvector**
- **Redis**
- **Celery worker** — start with explicit queue names:
```bash
uv run celery -A celery_worker.celery_app worker --loglevel=info --concurrency=1 --pool=solo --queues="surfsense,surfsense.connectors"
```
- **Celery worker**
Your backend must have **`REGISTRATION_ENABLED=TRUE`** in its `.env` (this is the default). The tests register their own user on first run.