summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorankitjavalkar2017-11-07 11:11:34 +0530
committerankitjavalkar2017-11-08 18:38:54 +0530
commitb5e481dde6fac34cf1e7e86b3c32d9ca74151fa2 (patch)
treedf769059e6328bab9dec12ca57cb881417c7cb79 /yaksh/models.py
parent0cbf0f1753cbff69d5c03c831caa82ec17cb2e93 (diff)
downloadonline_test-b5e481dde6fac34cf1e7e86b3c32d9ca74151fa2.tar.gz
online_test-b5e481dde6fac34cf1e7e86b3c32d9ca74151fa2.tar.bz2
online_test-b5e481dde6fac34cf1e7e86b3c32d9ca74151fa2.zip
Fix test cases
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index cb9b481..4b5d553 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -82,6 +82,8 @@ test_status = (
('completed', 'Completed'),
)
+FIXTURES_DIR_PATH = os.path.join(settings.BASE_DIR, 'yaksh/fixtures/')
+
def get_assignment_dir(instance, filename):
upload_dir = instance.question_paper.quiz.description.replace(" ", "_")
@@ -544,7 +546,7 @@ class Question(models.Model):
def create_demo_questions(self, user):
zip_file_path = os.path.join(
- settings.FIXTURE_DIRS, 'demo_questions.zip'
+ FIXTURES_DIR_PATH, 'demo_questions.zip'
)
files, extract_path = extract_files(zip_file_path)
self.read_yaml(extract_path, user, files)