From 4b1b600139c6f04c81d789c939ae3b21222ab47a Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Sat, 16 Mar 2024 17:46:08 -0700 Subject: [PATCH] fix oidc logout test which relied on receiving 400 --- test/integration/oidc/test_auth_oidc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/oidc/test_auth_oidc.py b/test/integration/oidc/test_auth_oidc.py index 1674e9353079..29ff1c18b2b6 100644 --- a/test/integration/oidc/test_auth_oidc.py +++ b/test/integration/oidc/test_auth_oidc.py @@ -296,7 +296,8 @@ def test_oidc_logout(self): response = session.get(response.json()["redirect_uri"], verify=False) # make sure we can no longer request the user response = session.get(self._api_url("users/current")) - self._assert_status_code_is(response, 400) + self._assert_status_code_is(response, 200) + assert "email" not in response.json() def test_auth_by_access_token_logged_in_once(self): # login at least once