test: clarify caller cleanup responsibility in _make_unauthenticated_client docstring

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-14 09:55:33 +00:00
parent 96ef7d4769
commit 751b16d804
+3
View File
@@ -75,6 +75,9 @@ def _make_unauthenticated_client(tok_engine) -> TestClient:
authentication path. Any request made with this client that does not
carry a valid session or Bearer token will receive a 401 from the
actual auth code, not from a mocked dependency.
The caller is responsible for clearing overrides via ``_cleanup(app)``
after the test completes (typically in a ``finally`` block).
"""
from app.main import app