Skip to content

Commit a7b8682

Browse files
Align workflow task history SDK fixture
1 parent 574ffd9 commit a7b8682

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/fixtures/control-plane/workflow-task-history-parity.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
"lease_owner": "polyglot-worker-231",
1717
"workflow_task_attempt": 2,
1818
"next_history_page_token": "history-page-2",
19-
"last_sequence": 4,
20-
"next_page_token": "history-page-3"
19+
"total_history_events": 4,
20+
"next_history_page_token_response": "history-page-3"
2121
},
2222
"response_body": {
23-
"events": [
23+
"history_events": [
2424
{
2525
"event_id": 2,
2626
"event_type": "ActivityScheduled",
@@ -36,8 +36,8 @@
3636
}
3737
}
3838
],
39-
"last_sequence": 4,
40-
"next_page_token": "history-page-3"
39+
"total_history_events": 4,
40+
"next_history_page_token": "history-page-3"
4141
},
4242
"cli": {
4343
"argv": {

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ async def test_workflow_task_history_matches_polyglot_fixture(self, client: Clie
14851485
page = await client.workflow_task_history(**fixture["sdk_python"]["kwargs"])
14861486

14871487
assert page == fixture["response_body"]
1488-
assert page["next_page_token"] == fixture["semantic_body"]["next_page_token"]
1488+
assert page["next_history_page_token"] == fixture["semantic_body"]["next_history_page_token_response"]
14891489
assert mock.call_args.args[:2] == (fixture["request"]["method"], f"/api{fixture['request']['path']}")
14901490
assert mock.call_args.kwargs["json"] == fixture["request"]["body"]
14911491

0 commit comments

Comments
 (0)