Skip to content

Commit b35b245

Browse files
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.
1 parent b66f8eb commit b35b245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangosaml2/tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def test_assertion_consumer_service(self):
263263

264264
url = urlparse(location)
265265
# as the RelayState is empty we have redirect to LOGIN_REDIRECT_URL
266-
self.assertEquals(url.path, '/accounts/profile/')
266+
self.assertEquals(url.path, settings.LOGIN_REDIRECT_URL)
267267
self.assertEquals(force_text(new_user.id), self.client.session[SESSION_KEY])
268268

269269
def test_missing_param_to_assertion_consumer_service_request(self):

0 commit comments

Comments
 (0)