Skip to content

Commit

Permalink
- Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Oct 30, 2018
1 parent 035c079 commit d62e734
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions geonode/tests/smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def test_inbox_redirects_when_not_logged_in(self):
response = self.client.get(target_url)
self.assertRedirects(
response,
"{}?next={}".format(reverse("account_login"), 'http://testserver%s' % target_url)
"{}{}?next={}".format(settings.SITEURL[:-1], reverse("account_login"), target_url)
)

def test_new_message_renders(self):
Expand All @@ -355,7 +355,7 @@ def test_new_message_redirects_when_not_logged_in(self):
response = self.client.get(target_url)
self.assertRedirects(
response,
"{}?next={}".format(reverse("account_login"), 'http://testserver%s' % target_url)
"{}{}?next={}".format(settings.SITEURL[:-1], reverse("account_login"), target_url)
)

def test_thread_detail_renders(self):
Expand All @@ -370,6 +370,7 @@ def test_thread_detail_redirects_when_not_logged_in(self):
target_url = reverse("messages_thread_detail", args=(self.thread.id,))
response = self.client.get(target_url)
self.assertRedirects(
settings.SITEURL[:-1],
response,
"{}?next={}".format(reverse("account_login"), 'http://testserver%s' % target_url)
"{}{}?next={}".format(reverse("account_login"), target_url)
)

0 comments on commit d62e734

Please sign in to comment.