From 53b126dd38d67a305468ea1422e60f8ca86c2746 Mon Sep 17 00:00:00 2001 From: bt-dlagin Date: Tue, 14 Jan 2025 12:15:39 +0100 Subject: [PATCH] [18.0][MIG] auth_saml: Migration to 18.0 --- auth_saml/tests/test_pysaml.py | 8 -------- 1 file changed, 8 deletions(-) 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"])