diff --git a/auth_saml/tests/test_pysaml.py b/auth_saml/tests/test_pysaml.py index 564d84fe21..a9b763ffe1 100644 --- a/auth_saml/tests/test_pysaml.py +++ b/auth_saml/tests/test_pysaml.py @@ -594,11 +594,3 @@ def test_access_denied_redirect(self): response = self.url_open("/auth_saml/signin", allow_redirects=False) self.assertEqual(response.status_code, 303) self.assertIn("/web/login?saml_error=expired", response.headers["Location"]) - - def test_generic_exception_redirect(self): - """Test that a generic exception leads to the correct redirect.""" - with patch("odoo.http.request.env") as mock_env: - mock_env["res.users"].auth_saml.side_effect = Exception("Generic error") - response = self.url_open("/auth_saml/signin", allow_redirects=False) - self.assertEqual(response.status_code, 303) - self.assertIn("/web/login?saml_error=access-denied", response.headers["Location"])