Commit 069de1c5 by Nick Parlante Committed by stv

Temporarily disable capa name masking

There is a bug I need to fix when a student re-visits a problem that they
had solved previously without masking enabled, their old state does not
load correclty.

It's simplest to turn off masking now, and re-enable it with the whole fix.

The change here is a small deletion to remove the masking=True logic, and more
lengthy changes to adjust the tests.
parent 346d4d98
...@@ -586,7 +586,7 @@ class CapaTargetedFeedbackTest(unittest.TestCase): ...@@ -586,7 +586,7 @@ class CapaTargetedFeedbackTest(unittest.TestCase):
def test_targeted_feedback_multiple_answer_2(self): def test_targeted_feedback_multiple_answer_2(self):
problem = new_loncapa_problem(load_fixture('targeted_feedback_multiple.xml')) problem = new_loncapa_problem(load_fixture('targeted_feedback_multiple.xml'))
problem.done = True problem.done = True
problem.student_answers = {'1_2_1': 'choice_0', '1_3_1': 'mask_1'} # Q1 wrong, Q2 correct problem.student_answers = {'1_2_1': 'choice_0', '1_3_1': 'choice_2'} # Q1 wrong, Q2 correct
the_html = problem.get_html() the_html = problem.get_html()
without_new_lines = the_html.replace("\n", "") without_new_lines = the_html.replace("\n", "")
# Q1 has feedback1 and Q2 has feedbackC # Q1 has feedback1 and Q2 has feedbackC
......
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