Skip to content

Commit e7bd2ef

Browse files
authored
Merge pull request #64 from GitGuardian/agateau/improve-create_jwt-test
Improve create_jwt() test
2 parents 44aae44 + 4e7081c commit e7bd2ef

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/test_client.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ def test_create_honeytoken_error(
741741

742742

743743
@responses.activate
744-
def test_get_wt(
744+
def test_create_jwt(
745745
client: GGClient,
746746
):
747747
"""
@@ -751,6 +751,14 @@ def test_get_wt(
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)