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 d62e734 commit 52d7c1b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 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(settings.SITEURL[:-1], reverse("account_login"), target_url)
"{}{}?next=http%3A//testserver{}".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(settings.SITEURL[:-1], reverse("account_login"), target_url)
"{}{}?next=http%3A//testserver{}".format(settings.SITEURL[:-1], reverse("account_login"), target_url)
)

def test_thread_detail_renders(self):
Expand All @@ -370,7 +370,6 @@ 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"), target_url)
"{}{}?next=http%3A//testserver{}".format(settings.SITEURL[:-1], reverse("account_login"), target_url)
)

0 comments on commit 52d7c1b

Please sign in to comment.