diff options
author | adityacp | 2018-02-22 18:05:00 +0530 |
---|---|---|
committer | adityacp | 2018-02-22 18:05:00 +0530 |
commit | 333859a8c1ab57e70ea57e92a22eaac6a1a1c0ac (patch) | |
tree | 6f7fa9bc81b7713b87f111c773e0718bfbd4bbeb /yaksh/test_views.py | |
parent | 2a46206abfd04509707f7bf21a9f6dbc1b2b6b82 (diff) | |
download | online_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.py | 8 |
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 ) |