Skip to content

Commit 0a2e0ee

Browse files
authored
Merge pull request #79 from sylvain-josserand/patch-1
Test fails when LOGIN_REDIRECT_URL is not default
2 parents 830db54 + b35b245 commit 0a2e0ee

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)