Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
sylvain-josserand authored Aug 28, 2017
commit b35b24560bd37dbd4abf02149192b2a8d6f497fc
2 changes: 1 addition & 1 deletion djangosaml2/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down