From 0def70e725dd98441c9a2f0a9ec3cc733c8f0e3c Mon Sep 17 00:00:00 2001 From: Dillon Dumesnil Date: Fri, 8 Dec 2017 13:03:05 -0500 Subject: [PATCH 1/2] Updating xblock-review version to include commit for being more defensive about score field in the state of a problem --- requirements/edx/github.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/edx/github.txt b/requirements/edx/github.txt index b6c72a7f35..fc2a73e888 100644 --- a/requirements/edx/github.txt +++ b/requirements/edx/github.txt @@ -102,7 +102,7 @@ git+https://github.com/edx/edx-user-state-client.git@1.0.2#egg=edx-user-state-cl git+https://github.com/edx/xblock-lti-consumer.git@v1.1.6#egg=lti_consumer-xblock==1.1.6 git+https://github.com/edx/edx-proctoring.git@1.3.1#egg=edx-proctoring==1.3.1 # This is here because all of the other XBlocks are located here. However, it is published to PyPI and will be installed that way -xblock-review==1.1.1 +xblock-review==1.1.2 # Third Party XBlocks From aa8b7ab2ec6d18b61dcb4079cc6a43f207f6192f Mon Sep 17 00:00:00 2001 From: Dillon Dumesnil Date: Fri, 8 Dec 2017 13:34:44 -0500 Subject: [PATCH 2/2] Fixing correctness text so it doesn't match 'correct' in the word 'correctness' causing my tests to fail. This should be improved soon --- openedx/tests/xblock_integration/test_review_xblock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openedx/tests/xblock_integration/test_review_xblock.py b/openedx/tests/xblock_integration/test_review_xblock.py index 5d4b78c30f..239bce67f4 100644 --- a/openedx/tests/xblock_integration/test_review_xblock.py +++ b/openedx/tests/xblock_integration/test_review_xblock.py @@ -363,12 +363,13 @@ class TestReviewFunctions(TestReviewXBlock): 'section': review_section_actual.location.name, } )) + print response expected_header_text = 'Review Problems' # The problems are defaulted to correct upon load # This happens because the problems "raw_possible" field is 0 and the # "raw_earned" field is also 0. - expected_correctness_text = 'correct' + expected_correctness_text = ' correct ' expected_problems = ['Review Problem 1', 'Review Problem 2', 'Review Problem 3', 'Review Problem 4', 'Review Problem 5', 'Review Problem 6']