From b35b24560bd37dbd4abf02149192b2a8d6f497fc Mon Sep 17 00:00:00 2001 From: Sylvain Josserand Date: Mon, 28 Aug 2017 14:00:13 +0200 Subject: [PATCH] Fix test when LOGIN_REDIRECT_URL is not default When the LOGIN_REDIRECT_URL setting is set to something other than `/accounts/profile`, then this test fails when it should not. --- djangosaml2/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangosaml2/tests/__init__.py b/djangosaml2/tests/__init__.py index c938d4ea..b3a51223 100644 --- a/djangosaml2/tests/__init__.py +++ b/djangosaml2/tests/__init__.py @@ -263,7 +263,7 @@ def test_assertion_consumer_service(self): url = urlparse(location) # as the RelayState is empty we have redirect to LOGIN_REDIRECT_URL - self.assertEquals(url.path, '/accounts/profile/') + self.assertEquals(url.path, settings.LOGIN_REDIRECT_URL) self.assertEquals(force_text(new_user.id), self.client.session[SESSION_KEY]) def test_missing_param_to_assertion_consumer_service_request(self):