From 5a9d9449066a2ffc51a3f9f38da23e0db7d0cbb9 Mon Sep 17 00:00:00 2001 From: bt-dlagin Date: Tue, 14 Jan 2025 14:01:18 +0100 Subject: [PATCH] [18.0][MIG] auth_saml: Migration to 18.0 --- auth_saml/tests/test_pysaml.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/auth_saml/tests/test_pysaml.py b/auth_saml/tests/test_pysaml.py index d56c67e21c..1e5e4cf966 100644 --- a/auth_saml/tests/test_pysaml.py +++ b/auth_saml/tests/test_pysaml.py @@ -11,7 +11,6 @@ from odoo.addons.auth_saml.controllers.main import fragment_to_query_string from .fake_idp import DummyResponse, FakeIDP -from odoo import http @tagged("saml", "post_install", "-at_install") @@ -611,7 +610,7 @@ def test_get_cert_key_path_tempfile(self): os.remove(cert_key_path) def test_signin_no_relaystate_redirect(self): - """Test that the signin method redirects to /?type=signup when RelayState is missing.""" + """Test redirect to /?type=signup when RelayState is missing.""" self.add_provider_to_user() redirect_url = self.saml_provider._get_auth_request() @@ -624,7 +623,7 @@ def test_signin_no_relaystate_redirect(self): signin_response = self.url_open( "/auth_saml/signin", data={"SAMLResponse": response.text}, - allow_redirects=False + allow_redirects=False, ) self.assertEqual(signin_response.status_code, 303) self.assertIn("/?type=signup", signin_response.headers["Location"])