Skip to content

Commit dc34346

Browse files
committed
test: updated test_integration.py based on type->kind rename in #34
1 parent 630171f commit dc34346

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/server/test_integration.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@
5555
'version': '1.0',
5656
}
5757

58-
TEXT_PART_DATA: dict[str, Any] = {'type': 'text', 'text': 'Hello'}
58+
TEXT_PART_DATA: dict[str, Any] = {'kind': 'text', 'text': 'Hello'}
5959

60-
DATA_PART_DATA: dict[str, Any] = {'type': 'data', 'data': {'key': 'value'}}
60+
DATA_PART_DATA: dict[str, Any] = {'kind': 'data', 'data': {'key': 'value'}}
6161

6262
MINIMAL_MESSAGE_USER: dict[str, Any] = {
6363
'role': 'user',
6464
'parts': [TEXT_PART_DATA],
6565
'messageId': 'msg-123',
66-
'type': 'message',
66+
'kind': 'message',
6767
}
6868

6969
MINIMAL_TASK_STATUS: dict[str, Any] = {'state': 'submitted'}
@@ -174,12 +174,12 @@ def test_send_message(client: TestClient, handler: mock.AsyncMock):
174174
"role": "agent",
175175
"parts": [
176176
{
177-
"type": "text",
177+
"kind": "text",
178178
"text": "Hello"
179179
}
180180
],
181181
"messageId": "111",
182-
"type": "message",
182+
"kind": "message",
183183
"taskId": "task1",
184184
"contextId": "session-xyz",
185185
}
@@ -334,7 +334,7 @@ async def stream_generator():
334334
'contextId': 'session-xyz',
335335
'append': False,
336336
'lastChunk': last[i],
337-
'type': 'artifact-update',
337+
'kind': 'artifact-update',
338338
}
339339
event_data: dict[str, Any] = {
340340
'jsonrpc': '2.0',
@@ -360,12 +360,12 @@ async def stream_generator():
360360
"role": "agent",
361361
"parts": [
362362
{
363-
"type": "text",
363+
"kind": "text",
364364
"text": "Hello"
365365
}
366366
],
367367
"messageId": "111",
368-
"type": "message",
368+
"kind": "message",
369369
"taskId": "taskId",
370370
"contextId": "session-xyz",
371371
}
@@ -416,7 +416,7 @@ async def stream_generator():
416416
'contextId': 'session-xyz',
417417
'append': False,
418418
'lastChunk': last[i],
419-
'type': 'artifact-update',
419+
'kind': 'artifact-update',
420420
}
421421
yield TaskArtifactUpdateEvent.model_validate(task_artifact_update_event_data)
422422

0 commit comments

Comments
 (0)