Skip to content

Commit b7289f2

Browse files
committed
add unit test for rest_get_paginated_async
1 parent 6601fdc commit b7289f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/synapseclient/unit_test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4312,7 +4312,7 @@ async def test_rest_get_paginated_async_with_children(self) -> None:
43124312
mock_responses = [
43134313
{"children": [{"id": 1}, {"id": 2}]},
43144314
{"children": [{"id": 3}]},
4315-
{"children": []}, # Empty results to end pagination
4315+
{"children": []},
43164316
]
43174317

43184318
with patch.object(
@@ -4358,7 +4358,7 @@ async def test_rest_get_paginated_async_custom_limit(self) -> None:
43584358
# Mock the rest_get_async method to return paginated results
43594359
mock_responses = [
43604360
{"results": [{"id": 1}, {"id": 2}]},
4361-
{"results": []}, # Empty results to end pagination
4361+
{"results": []},
43624362
]
43634363

43644364
with patch.object(

0 commit comments

Comments
 (0)