summaryrefslogtreecommitdiff
path: root/yaksh/test_views.py
diff options
context:
space:
mode:
authorankitjavalkar2017-11-07 11:11:34 +0530
committerankitjavalkar2017-11-08 18:38:54 +0530
commitb5e481dde6fac34cf1e7e86b3c32d9ca74151fa2 (patch)
treedf769059e6328bab9dec12ca57cb881417c7cb79 /yaksh/test_views.py
parent0cbf0f1753cbff69d5c03c831caa82ec17cb2e93 (diff)
downloadonline_test-b5e481dde6fac34cf1e7e86b3c32d9ca74151fa2.tar.gz
online_test-b5e481dde6fac34cf1e7e86b3c32d9ca74151fa2.tar.bz2
online_test-b5e481dde6fac34cf1e7e86b3c32d9ca74151fa2.zip
Fix test cases
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 e3b0168..652f44c 100644
--- a/yaksh/test_views.py
+++ b/yaksh/test_views.py
@@ -23,7 +23,7 @@ from django.core.files.uploadedfile import SimpleUploadedFile
from yaksh.models import User, Profile, Question, Quiz, QuestionPaper,\
QuestionSet, AnswerPaper, Answer, Course, StandardTestCase,\
AssignmentUpload, FileUpload, McqTestCase, IntegerTestCase, StringTestCase,\
- FloatTestCase
+ FloatTestCase, FIXTURES_DIR_PATH
from yaksh.decorators import user_has_profile
@@ -3201,7 +3201,7 @@ class TestShowQuestions(TestCase):
username=self.user.username,
password=self.user_plaintext_pass
)
- ques_file = os.path.join(settings.FIXTURE_DIRS, "demo_questions.zip")
+ ques_file = os.path.join(FIXTURES_DIR_PATH, "demo_questions.zip")
f = open(ques_file, 'rb')
questions_file = SimpleUploadedFile(ques_file, f.read(),
content_type="application/zip")