Commit 0349e157 by Alexander Kryklia

renamed graders to verifiers

parent 63b79f76
...@@ -34,8 +34,8 @@ import chem ...@@ -34,8 +34,8 @@ import chem
import chem.chemcalc import chem.chemcalc
import chem.chemtools import chem.chemtools
import chem.miller import chem.miller
import graders import verifiers
import graders.draganddrop import verifiers.draganddrop
import calc import calc
from correctmap import CorrectMap from correctmap import CorrectMap
...@@ -72,7 +72,7 @@ global_context = {'random': random, ...@@ -72,7 +72,7 @@ global_context = {'random': random,
'chemcalc': chem.chemcalc, 'chemcalc': chem.chemcalc,
'chemtools': chem.chemtools, 'chemtools': chem.chemtools,
'miller': chem.miller, 'miller': chem.miller,
'draganddrop': graders.draganddrop} 'draganddrop': verifiers.draganddrop}
# These should be removed from HTML output, including all subelements # These should be removed from HTML output, including all subelements
html_problem_semantics = ["codeparam", "responseparam", "answer", "script", "hintgroup", "openendedparam","openendedrubric"] html_problem_semantics = ["codeparam", "responseparam", "answer", "script", "hintgroup", "openendedparam","openendedrubric"]
......
...@@ -68,7 +68,7 @@ class Test_DragAndDrop_Grade(unittest.TestCase): ...@@ -68,7 +68,7 @@ class Test_DragAndDrop_Grade(unittest.TestCase):
user_input = '{"use_targets": true, "draggables": [{"1": [10,10]}, \ user_input = '{"use_targets": true, "draggables": [{"1": [10,10]}, \
{"name_with_icon": [[10,10],4]}]}' {"name_with_icon": [[10,10],4]}]}'
correct_answer = {'1': [10, 10], 'name_with_icon': [[10, 10], 4]} correct_answer = {'1': [10, 10], 'name_with_icon': [[10, 10], 4]}
self.assertTrue(draganddrop.grade(user_input, correct_answer)) self.assertFalse(draganddrop.grade(user_input, correct_answer))
def test_position_and_targets(self): def test_position_and_targets(self):
user_input = '{"use_targets": false, \ user_input = '{"use_targets": false, \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment