Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Saludame.activity/test/test_challenges.py
diff options
context:
space:
mode:
Diffstat (limited to 'Saludame.activity/test/test_challenges.py')
-rw-r--r--Saludame.activity/test/test_challenges.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/Saludame.activity/test/test_challenges.py b/Saludame.activity/test/test_challenges.py
new file mode 100644
index 0000000..fbb90ef
--- /dev/null
+++ b/Saludame.activity/test/test_challenges.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+
+import sys
+sys.path.append("..")
+import challenges_creator
+
+def run_mc_challenges():
+ mc_challenges = challenges_creator.get_mc_challenges()
+
+ for challenge_type, challenges in mc_challenges.items():
+ print challenge_type
+ print ""
+
+ for c in challenges:
+ question, answers, correct, level, image = c
+ print question
+ for ans in answers:
+ print ans
+
+ sys.stdin.readline()
+ print ""
+ print ""
+
+run_mc_challenges()