Skip to content

Commit 4e7081c

Browse files
committed
chore: make create_jwt() test more picky
Be more precise in the definition of the expected HTTP request: check the payload contains the expected values.
1 parent 88a5f0a commit 4e7081c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,14 @@ def test_create_jwt(
751751
"""
752752
mock_response = responses.post(
753753
url=client._url_from_endpoint("auth/jwt", "v1"),
754+
match=[
755+
matchers.json_params_matcher(
756+
{
757+
"audience": "dummy_audience",
758+
"audience_type": "hmsl",
759+
}
760+
)
761+
],
754762
content_type="application/json",
755763
status=200,
756764
json={"token": "dummy_token"},

0 commit comments

Comments
 (0)