Skip to content

Commit 4d20eea

Browse files
committed
fix(tests): update field options test to match actual implementation
- Change expected maxResults parameter from 50 to 10000 to match the default - Fix server API path to use correct /rest/api/2/customFields/{id}/options format
1 parent 344aad6 commit 4d20eea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/test_field_options.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,12 +296,12 @@ def test_api_version_selection(self):
296296
FieldsMixin.get_field_options(cloud_mixin, "customfield_10001")
297297
cloud_mixin.jira.get.assert_called_with(
298298
path="/rest/api/3/field/customfield_10001/option",
299-
params={"startAt": 0, "maxResults": 50}
299+
params={"startAt": 0, "maxResults": 10000}
300300
)
301301

302302
# Test Server API version (2)
303303
FieldsMixin.get_field_options(server_mixin, "customfield_10001")
304304
server_mixin.jira.get.assert_called_with(
305-
path="/rest/api/2/field/customfield_10001/option",
306-
params={"startAt": 0, "maxResults": 50}
305+
path="/rest/api/2/customFields/10001/options",
306+
params={"startAt": 0, "maxResults": 10000}
307307
)

0 commit comments

Comments
 (0)