summaryrefslogtreecommitdiff
path: root/yaksh/test_views.py
diff options
context:
space:
mode:
authoradityacp2018-02-22 18:05:00 +0530
committeradityacp2018-02-22 18:05:00 +0530
commit333859a8c1ab57e70ea57e92a22eaac6a1a1c0ac (patch)
tree6f7fa9bc81b7713b87f111c773e0718bfbd4bbeb /yaksh/test_views.py
parent2a46206abfd04509707f7bf21a9f6dbc1b2b6b82 (diff)
downloadonline_test-333859a8c1ab57e70ea57e92a22eaac6a1a1c0ac.tar.gz
online_test-333859a8c1ab57e70ea57e92a22eaac6a1a1c0ac.tar.bz2
online_test-333859a8c1ab57e70ea57e92a22eaac6a1a1c0ac.zip
Change templates, test_views.py, urls.py, views.py
- Change copy_type to shallow and deep
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r--yaksh/test_views.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py
index fb33114..8695479 100644
--- a/yaksh/test_views.py
+++ b/yaksh/test_views.py
@@ -1871,7 +1871,7 @@ class TestCourses(TestCase):
response = self.client.get(
reverse('yaksh:duplicate_course',
kwargs={"course_id": self.user2_course.id,
- "copy_type": "copy"}),
+ "copy_type": "shallow"}),
follow=True
)
self.assertEqual(response.status_code, 404)
@@ -1886,7 +1886,7 @@ class TestCourses(TestCase):
response = self.client.get(
reverse('yaksh:duplicate_course',
kwargs={"course_id": self.user2_course.id,
- "copy_type": "copy"}),
+ "copy_type": "shallow"}),
follow=True
)
err_msg = "You do not have permissions"
@@ -1904,7 +1904,7 @@ class TestCourses(TestCase):
response = self.client.get(
reverse('yaksh:duplicate_course',
kwargs={"course_id": self.user2_course.id,
- "copy_type": "copy"}),
+ "copy_type": "shallow"}),
follow=True
)
@@ -1937,7 +1937,7 @@ class TestCourses(TestCase):
response = self.client.get(
reverse('yaksh:duplicate_course',
kwargs={"course_id": self.user1_course.id,
- "copy_type": "clone"}),
+ "copy_type": "deep"}),
follow=True
)