summaryrefslogtreecommitdiff
path: root/yaksh/test_views.py
diff options
context:
space:
mode:
authoradityacp2018-07-17 17:17:41 +0530
committeradityacp2018-07-17 17:17:41 +0530
commit1e0a72f95af77614dc226af8d4010499723faab1 (patch)
treea2506fc549f329f801a63e46e3d117a8c9053153 /yaksh/test_views.py
parent49b2be625f2a79b87e1b51f13fdf8c9300cf690c (diff)
downloadonline_test-1e0a72f95af77614dc226af8d4010499723faab1.tar.gz
online_test-1e0a72f95af77614dc226af8d4010499723faab1.tar.bz2
online_test-1e0a72f95af77614dc226af8d4010499723faab1.zip
Fix failing tests for models and views
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r--yaksh/test_views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py
index 5a14573..dbd9547 100644
--- a/yaksh/test_views.py
+++ b/yaksh/test_views.py
@@ -948,7 +948,6 @@ class TestDownloadAssignment(TestCase):
# create assignment file
assignment_file1 = SimpleUploadedFile("file1.txt", b"Test")
assignment_file2 = SimpleUploadedFile("file2.txt", b"Test")
- SimpleUploadedFile("file3.txt", b"Test")
self.assignment1 = AssignmentUpload.objects.create(
user=self.student1, assignmentQuestion=self.question,
course=self.course,
@@ -972,7 +971,7 @@ class TestDownloadAssignment(TestCase):
self.learning_module.delete()
self.learning_unit.delete()
self.mod_group.delete()
- dir_name = self.quiz.description.replace(" ", "_")
+ dir_name = self.course.name.replace(" ", "_")
file_path = os.sep.join((settings.MEDIA_ROOT, dir_name))
if os.path.exists(file_path):
shutil.rmtree(file_path)