chore: release NanoShare 1.20.0
Build and Push Docker Container / build-and-push (push) Successful in 2m4s
Build and Push Docker Container / build-and-push (push) Successful in 2m4s
- Bump the application version from 0.1.0 to 1.20.0 using the project version scheme. - Trim pyproject dependencies to direct root packages only and let uv.lock keep the resolved transitive set. - Update the quart_common submodule to include the latest wide-event session context handling. - Adjust NanoShare wide-event middleware expectations for the new session payload shape.
This commit is contained in:
@@ -95,7 +95,10 @@ def test_middleware_adds_user_and_client_context(monkeypatch):
|
||||
assert g.wide_event["user"]["id"] == "user_123"
|
||||
assert g.wide_event["user"]["name"] == "demo"
|
||||
assert g.wide_event["user"]["authenticated"] is True
|
||||
assert g.wide_event["user"]["session_age_seconds"] >= 0
|
||||
assert "authenticated" not in g.wide_event["session"]
|
||||
assert g.wide_event["session"]["permanent"] is True
|
||||
assert g.wide_event["session"]["login_at_unix"] == 1
|
||||
assert g.wide_event["session"]["age_seconds"] >= 0
|
||||
assert g.wide_event["client"]["ip"] == "203.0.113.10"
|
||||
|
||||
asyncio.run(run_test())
|
||||
|
||||
Reference in New Issue
Block a user