From bbacb1703c4c1ab641773e58bbd06285e1da62a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Tue, 10 Dec 2024 08:12:13 +0100 Subject: [PATCH] tests: attempt to fix the token creation audience assertion --- tests/oidc/test_client_admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/oidc/test_client_admin.py b/tests/oidc/test_client_admin.py index 082c15e8..c974be52 100644 --- a/tests/oidc/test_client_admin.py +++ b/tests/oidc/test_client_admin.py @@ -304,7 +304,7 @@ def test_client_new_token(testclient, logged_admin, backend, client): assert not token.subject assert token.type == "access_token" assert token.scope == client.scope - assert token.audience == client.audience + assert client in token.audience res = res.follow() assert res.template == "token_view.html"