Skip to content

Commit

Permalink
add tests for createmeta_fieldtypes and createmeta_issuetypes filters
Browse files Browse the repository at this point in the history
  • Loading branch information
paminov committed Dec 23, 2023
1 parent e44be77 commit 4968e13
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,29 @@ def test_cookie_auth_retry():
)
# THEN: We don't get a RecursionError and only call the reset_function once
mock_reset_func.assert_called_once()


def test_createmeta_issuetypes_filters(cl_normal, slug):
"""Test createmeta_issuetypes filter kwargs"""
issue_types_resp = cl_normal.createmeta_issuetypes(
slug,
startAt=50,
maxResults=100
)
assert issue_types_resp["startAt"] == 50
assert issue_types_resp["maxResults"] == 100


def test_createmeta_fieldtypes_filters(cl_normal, slug):
"""Test createmeta_fieldtypes filter kwargs"""
issue_types = cl_normal.createmeta_issuetypes(slug)
assert issue_types["total"]
issue_type_id = issue_types["values"][-1]["id"]
field_types_resp = cl_normal.createmeta_fieldtypes(
projectIdOrKey=slug,
issueTypeId=issue_type_id,
startAt=50,
maxResults=100
)
assert field_types_resp["startAt"] == 50
assert field_types_resp["maxResults"] == 100

0 comments on commit 4968e13

Please sign in to comment.