Commit 6b88b6c4 by Clinton Blackburn

Updated answer_value references

answer_value should be used instead of answer_value_text and answer_value_numeric
parent 3d0b5450
...@@ -39,8 +39,7 @@ def matching_tuple(answer): ...@@ -39,8 +39,7 @@ def matching_tuple(answer):
""" Return tuple containing values which must match for consolidation. """ """ Return tuple containing values which must match for consolidation. """
return ( return (
answer.question_text, answer.question_text,
answer.answer_value_text, answer.answer_value,
answer.answer_value_numeric,
answer.problem_display_name, answer.problem_display_name,
answer.correct, answer.correct,
) )
......
...@@ -26,8 +26,7 @@ class AnswerDistributionTests(TestCaseWithAuthentication): ...@@ -26,8 +26,7 @@ class AnswerDistributionTests(TestCaseWithAuthentication):
cls.correct = True cls.correct = True
cls.value_id1 = '3' cls.value_id1 = '3'
cls.value_id2 = '4' cls.value_id2 = '4'
cls.answer_value_text = '3' cls.answer_value = '3'
cls.answer_value_numeric = 3.0
cls.problem_display_name = 'Test Problem' cls.problem_display_name = 'Test Problem'
cls.question_text = 'Question Text' cls.question_text = 'Question Text'
...@@ -38,8 +37,7 @@ class AnswerDistributionTests(TestCaseWithAuthentication): ...@@ -38,8 +37,7 @@ class AnswerDistributionTests(TestCaseWithAuthentication):
part_id=cls.part_id, part_id=cls.part_id,
correct=cls.correct, correct=cls.correct,
value_id=cls.value_id1, value_id=cls.value_id1,
answer_value_text=cls.answer_value_text, answer_value=cls.answer_value,
answer_value_numeric=cls.answer_value_numeric,
problem_display_name=cls.problem_display_name, problem_display_name=cls.problem_display_name,
question_text=cls.question_text, question_text=cls.question_text,
variant=123, variant=123,
...@@ -52,8 +50,7 @@ class AnswerDistributionTests(TestCaseWithAuthentication): ...@@ -52,8 +50,7 @@ class AnswerDistributionTests(TestCaseWithAuthentication):
part_id=cls.part_id, part_id=cls.part_id,
correct=cls.correct, correct=cls.correct,
value_id=cls.value_id1, value_id=cls.value_id1,
answer_value_text=cls.answer_value_text, answer_value=cls.answer_value,
answer_value_numeric=cls.answer_value_numeric,
problem_display_name=cls.problem_display_name, problem_display_name=cls.problem_display_name,
question_text=cls.question_text, question_text=cls.question_text,
variant=345, variant=345,
......
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