Skip to content

Commit 9a91860

Browse files
authored
Reinstate use of continuation token when retrieving test suites for plan
This functionality was present in v5.1, but removed afterwards. See microsoft#461
1 parent c8348d5 commit 9a91860

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

azure-devops/azure/devops/v7_1/test_plan/test_plan_client.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,22 @@ def get_test_suites_for_plan(self, project, plan_id, expand=None, continuation_t
361361
version='7.1-preview.1',
362362
route_values=route_values,
363363
query_parameters=query_parameters)
364-
return self._deserialize('[TestSuite]', self._unwrap_collection(response))
364+
response_value = self._deserialize('[TestSuite]', self._unwrap_collection(response))
365+
continuation_token = self._get_continuation_token(response)
366+
return self.GetTestSuitesForPlanResponseValue(response_value, continuation_token)
367+
368+
class GetTestSuitesForPlanResponseValue(object):
369+
def __init__(self, value, continuation_token):
370+
"""
371+
Response for the get_test_suites_for_plan method
372+
373+
:param value:
374+
:type value: :class:`<[TestSuite]> <azure.devops.v7_1.test_plan.models.[TestSuite]>`
375+
:param continuation_token: The continuation token to be used to get the next page of results.
376+
:type continuation_token: str
377+
"""
378+
self.value = value
379+
self.continuation_token = continuation_token
365380

366381
def update_test_suite(self, test_suite_update_params, project, plan_id, suite_id):
367382
"""UpdateTestSuite.

0 commit comments

Comments
 (0)