From 0b1c7db96708379953cba056b25297ccc173f2b2 Mon Sep 17 00:00:00 2001 From: DawoudSheraz Date: Tue, 28 Jan 2020 12:03:13 +0500 Subject: [PATCH] add multiple correct values check for Dropdown problems --- common/lib/capa/capa/capa_problem.py | 19 ++++++++- .../lib/capa/capa/tests/test_capa_problem.py | 32 ++++++++++++++ common/lib/xmodule/xmodule/capa_module.py | 28 ++++++++----- .../xmodule/xmodule/tests/test_capa_module.py | 21 ++++++++++ .../courseware/tests/test_module_render.py | 42 +++++++++++++++++++ .../grades/tests/test_transformer.py | 29 +++++++++++++ 6 files changed, 159 insertions(+), 12 deletions(-) diff --git a/common/lib/capa/capa/capa_problem.py b/common/lib/capa/capa/capa_problem.py index 5f44750ccb..1571ad54b8 100644 --- a/common/lib/capa/capa/capa_problem.py +++ b/common/lib/capa/capa/capa_problem.py @@ -245,6 +245,22 @@ class LoncapaProblem(object): This translation takes in the new format and synthesizes the old option= attribute so all downstream logic works unchanged with the new