diff --git a/tests/integration_tests/security/api_tests.py b/tests/integration_tests/security/api_tests.py index 45545c70c403..fcacd7ce668f 100644 --- a/tests/integration_tests/security/api_tests.py +++ b/tests/integration_tests/security/api_tests.py @@ -75,7 +75,7 @@ def test_post_guest_token_unauthorized(self): """ self.login(username="gamma") response = self.client.post(self.uri) - self.assert401(response) + self.assert403(response) def test_post_embed_token_authorized(self): self.login(username="admin")