File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,11 @@ def test_chat(sized_page: Page, live_server_url: str):
90
90
91
91
# Set up a mock route to the /chat endpoint with streaming results
92
92
def handle (route : Route ):
93
- # Assert that session_state is specified in the request (None for now)
93
+ # Assert that session_state is specified in the request
94
94
session_state = route .request .post_data_json ["session_state" ]
95
- assert session_state is None
95
+ # Assert session state is a random UUID generated from crypto.randomUUID()
96
+ assert session_state is not None
97
+ assert len (session_state ) == 36
96
98
# Read the JSONL from our snapshot results and return as the response
97
99
f = open ("tests/snapshots/test_app/test_chat_stream_text/client0/result.jsonlines" )
98
100
jsonl = f .read ()
You can’t perform that action at this time.
0 commit comments