aboutsummaryrefslogtreecommitdiff
path: root/test/data/exam.json
diff options
context:
space:
mode:
authorHumairAK <humair88@hotmail.com>2016-07-26 20:44:06 +0000
committerHumairAK <humair88@hotmail.com>2016-07-26 20:44:06 +0000
commit9c10936cf1420f160a5007c6baad7b25ffb6d014 (patch)
treed3fb09efa5dc25cfe63eb6c4c783f415cba45597 /test/data/exam.json
parent3983edb2518acd91f991ad5fc6308bcaf46700f5 (diff)
Added more unit tests, fixed some bugs in the code, fixed voting alert prompts and redirects
Diffstat (limited to 'test/data/exam.json')
-rw-r--r--test/data/exam.json60
1 files changed, 60 insertions, 0 deletions
diff --git a/test/data/exam.json b/test/data/exam.json
new file mode 100644
index 0000000..0504679
--- /dev/null
+++ b/test/data/exam.json
@@ -0,0 +1,60 @@
+{
+ "existing" : {
+ "_id": {
+ "$oid": "57917d4d2a73c0224fb6e763"
+ },
+ "course_code": "CSC373",
+ "year": "2016",
+ "term": "Midterm",
+ "type": "Winter",
+ "instructors": [
+ "Robert Dane"
+ ],
+ "page_count": "20",
+ "questions_count": "2",
+ "questions_list": [
+ {
+ "q_id": 1,
+ "question": "Question 1"
+ },
+ {
+ "q_id": 2,
+ "question": "Question 2"
+ }
+ ],
+ "upload_date": "2005-06-10",
+ "uploaded_by": [
+ "humair",
+ ""
+ ]
+ },
+ "nonExisting" : {
+ "_id": {
+ "$oid": "999999999999999999999999"
+ },
+ "course_code": "CSC373",
+ "year": "2016",
+ "term": "Midterm",
+ "type": "Winter",
+ "instructors": [
+ "Robert Dane"
+ ],
+ "page_count": "20",
+ "questions_count": "2",
+ "questions_list": [
+ {
+ "q_id": 1,
+ "question": "Question 1"
+ },
+ {
+ "q_id": 2,
+ "question": "Question 2"
+ }
+ ],
+ "upload_date": "2005-06-10",
+ "uploaded_by": [
+ "humair",
+ ""
+ ]
+ }
+} \ No newline at end of file