diff --git a/surfsense_backend/pyproject.toml b/surfsense_backend/pyproject.toml index 5cf5d4b8c..39dc6eb5e 100644 --- a/surfsense_backend/pyproject.toml +++ b/surfsense_backend/pyproject.toml @@ -171,7 +171,7 @@ testpaths = ["tests"] python_files = ["test_*.py"] python_classes = ["Test*"] python_functions = ["test_*"] -addopts = "-v --tb=short -x --strict-markers -ra --durations=10" +addopts = "-v --tb=short -x --strict-markers -ra --durations=5" markers = [ "document: document upload and processing tests", "connector: connector indexing tests", diff --git a/surfsense_web/content/docs/testing.mdx b/surfsense_web/content/docs/testing.mdx index d2666d3a2..421d3f2be 100644 --- a/surfsense_web/content/docs/testing.mdx +++ b/surfsense_web/content/docs/testing.mdx @@ -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.