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:
@@ -75,6 +75,9 @@ def _make_unauthenticated_client(tok_engine) -> TestClient:
|
|||||||
authentication path. Any request made with this client that does not
|
authentication path. Any request made with this client that does not
|
||||||
carry a valid session or Bearer token will receive a 401 from the
|
carry a valid session or Bearer token will receive a 401 from the
|
||||||
actual auth code, not from a mocked dependency.
|
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
|
from app.main import app
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user