summaryrefslogtreecommitdiff
path: root/yaksh/test_views.py
diff options
context:
space:
mode:
authorCruiseDevice2020-09-17 13:32:12 +0530
committerankitjavalkar2020-10-08 10:42:51 +0530
commit31e258a9d2e253691fd548d47aaab3cfee756322 (patch)
tree496d815a2df967d515d09030108324d7a7d5a998 /yaksh/test_views.py
parent5e49406420207123afec88a1ca7138e7a58c2acc (diff)
downloadonline_test-31e258a9d2e253691fd548d47aaab3cfee756322.tar.gz
online_test-31e258a9d2e253691fd548d47aaab3cfee756322.tar.bz2
online_test-31e258a9d2e253691fd548d47aaab3cfee756322.zip
Fix tests and minor changes
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r--yaksh/test_views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py
index 906f2e3..206120e 100644
--- a/yaksh/test_views.py
+++ b/yaksh/test_views.py
@@ -6808,7 +6808,7 @@ class TestPost(TestCase):
})
response = self.client.get(url, follow=True)
self.assertEqual(response.status_code, 200)
- redirection_url = '/exam/login/?next=/exam/forum/{0}/'.format(
+ redirection_url = '/exam/login/?next=/exam/forum/course_forum/{0}/'.format(
str(self.course.id)
)
self.assertRedirects(response, redirection_url)
@@ -6839,7 +6839,7 @@ class TestPost(TestCase):
self.assertEquals(response.status_code, 404)
def test_course_forum_url_resolves_course_forum_view(self):
- view = resolve('/exam/forum/1/')
+ view = resolve('/exam/forum/course_forum/1/')
self.assertEqual(view.func, course_forum)
def test_course_forum_contains_link_to_post_comments_page(self):