summaryrefslogtreecommitdiff
path: root/yaksh/fixtures
diff options
context:
space:
mode:
authoradityacp2020-09-30 17:02:19 +0530
committeradityacp2020-09-30 17:02:19 +0530
commit86be5fd441b92a7679eb2b8673bfba2c188ba0ba (patch)
treedf989862240f7027b017a44d6a46c0bfe9443cd7 /yaksh/fixtures
parent2dcaa3847c4faefd14ee88b9a2370e1d83e747f0 (diff)
downloadonline_test-86be5fd441b92a7679eb2b8673bfba2c188ba0ba.tar.gz
online_test-86be5fd441b92a7679eb2b8673bfba2c188ba0ba.tar.bz2
online_test-86be5fd441b92a7679eb2b8673bfba2c188ba0ba.zip
Add table of contents for lesson with yaml upload
Diffstat (limited to 'yaksh/fixtures')
-rw-r--r--yaksh/fixtures/invalid_yaml.yaml8
-rw-r--r--yaksh/fixtures/sample_lesson_toc.yaml66
2 files changed, 74 insertions, 0 deletions
diff --git a/yaksh/fixtures/invalid_yaml.yaml b/yaksh/fixtures/invalid_yaml.yaml
new file mode 100644
index 0000000..bcc153c
--- /dev/null
+++ b/yaksh/fixtures/invalid_yaml.yaml
@@ -0,0 +1,8 @@
+---
+name: 'Sample lesson topic 1'
+description: 'Topic 1 description'
+---
+name: 'Sample lesson topic 1'
+description: 'Topic 1 description'
+content_type: 1
+time: '000000' \ No newline at end of file
diff --git a/yaksh/fixtures/sample_lesson_toc.yaml b/yaksh/fixtures/sample_lesson_toc.yaml
new file mode 100644
index 0000000..8030d5e
--- /dev/null
+++ b/yaksh/fixtures/sample_lesson_toc.yaml
@@ -0,0 +1,66 @@
+# content_type 1: Topic, 2: Grading quiz, 3: Exercise, 4: Poll
+---
+summary: |-
+ Sample lesson quiz 1
+type: |-
+ mcq
+language: |-
+ other
+description: |-
+ Choose the letter from the following
+points: 1.0
+testcase:
+- test_case_type: |-
+ mcqtestcase
+ options: |-
+ A
+ correct: false
+- test_case_type: |-
+ mcqtestcase
+ options: |-
+ B
+ correct: true
+- test_case_type: |-
+ mcqtestcase
+ options: |-
+ C
+ correct: false
+- test_case_type: |-
+ mcqtestcase
+ options: |-
+ D
+ correct: false
+active: true
+topic: 'Dummy1'
+content_type: 2
+time: '00:02:00'
+---
+summary: |-
+ Sample lesson quiz 2
+type: |-
+ mcq
+language: |-
+ python
+description: |-
+ What will be the output of the statement
+ <br>
+ print(1+2)
+points: 1.0
+testcase:
+- test_case_type: |-
+ integertestcase
+ correct: '3'
+active: true
+topic: 'Dummy2'
+content_type: 2
+time: '00:05:00'
+---
+name: 'Sample lesson topic 1'
+description: 'Topic 1 description'
+content_type: 1
+time: '00:00:00'
+---
+name: 'Sample lesson topic 2'
+description: 'Topic 2 description'
+content_type: 1
+time: '00:01:00'