summaryrefslogtreecommitdiff
path: root/sample_questions.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2011-11-19 16:08:05 +0530
committerPrabhu Ramachandran2011-11-19 16:08:05 +0530
commite263244c70e8c5db0bc89bfee84ce37fe8e40d16 (patch)
treebd0c511e9f1950ecce899033278430527a4a276f /sample_questions.py
parentdb74ad784752eea326982c4e84faf9ec3768e006 (diff)
downloadonline_test-e263244c70e8c5db0bc89bfee84ce37fe8e40d16.tar.gz
online_test-e263244c70e8c5db0bc89bfee84ce37fe8e40d16.tar.bz2
online_test-e263244c70e8c5db0bc89bfee84ce37fe8e40d16.zip
Changed load_questions to load_exam
Added option to define quizzes in the file we load from. Also fixed bug in import for the xmlrpc_clients.py and changed the verbose name for Quiz objects.
Diffstat (limited to 'sample_questions.py')
-rw-r--r--sample_questions.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/sample_questions.py b/sample_questions.py
index 76d64c7..c77eb9d 100644
--- a/sample_questions.py
+++ b/sample_questions.py
@@ -1,4 +1,4 @@
-from exam.models import Question
+from datetime import date
questions = [
Question(
@@ -23,4 +23,9 @@ import math
assert sqr(3) == 9
assert abs(sqr(math.sqrt(2)) - 2.0) < 1e-14
'''),
-] \ No newline at end of file
+]
+
+quiz = Quiz(start_date=date.today(),
+ duration=10,
+ description='Basic Python Quiz 1'
+ )