test: update tests for new session_id behavior

session_id "new" now returns null at creation (set from SDK after completion).
Session tests use custom session_ids directly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Adriano Dal Pastro
2026-05-25 21:02:11 +00:00
parent ad38cf7eaf
commit e54f828722
2 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -49,8 +49,8 @@ async def test_create_request_with_new_session(client, topic_id):
)
assert resp.status_code == 202
data = resp.json()
assert data["data"]["session_id"] is not None
assert data["data"]["session_id"] != "new"
# session_id is None at creation; gets set from SDK after completion
assert data["data"]["session_id"] is None
@pytest.mark.asyncio