From 0c02eb0e49378190e66c240c6cc5a91176931820 Mon Sep 17 00:00:00 2001 From: leangseu-edx <83240113+leangseu-edx@users.noreply.github.com> Date: Tue, 16 Jan 2024 11:23:39 -0500 Subject: [PATCH] feat: remove disabled LaTex for ora mfe (#2160) * feat: remove disabled LaTex for ora mfe * chore: remove LaTex test * chore: version bump --- openassessment/__init__.py | 2 +- openassessment/xblock/openassessmentblock.py | 6 ------ openassessment/xblock/test/test_openassessment.py | 12 ------------ package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 4 insertions(+), 22 deletions(-) diff --git a/openassessment/__init__.py b/openassessment/__init__.py index 0f902e2e07..b78b04d54b 100644 --- a/openassessment/__init__.py +++ b/openassessment/__init__.py @@ -2,4 +2,4 @@ Initialization Information for Open Assessment Module """ -__version__ = '6.0.26' +__version__ = '6.0.27' diff --git a/openassessment/xblock/openassessmentblock.py b/openassessment/xblock/openassessmentblock.py index a6b5b7dab1..47aca5c497 100644 --- a/openassessment/xblock/openassessmentblock.py +++ b/openassessment/xblock/openassessmentblock.py @@ -641,8 +641,6 @@ def mfe_views_supported(self): Unsupported use-cases: 1) Team assignments 2) ORAs with leaderboards - 3) ORAs with LaTeX previews enabled - 4) Assignments with reordered assessment steps Returns: - False if we are in one of these unsupported configurations. @@ -657,10 +655,6 @@ def mfe_views_supported(self): if self.leaderboard_show != 0: return False - # LaTeX previews not enabled yet - if self.allow_latex: - return False - return True def ora_blocks_listing_view(self, context=None): diff --git a/openassessment/xblock/test/test_openassessment.py b/openassessment/xblock/test/test_openassessment.py index cf05ea93b0..be43839ec9 100644 --- a/openassessment/xblock/test/test_openassessment.py +++ b/openassessment/xblock/test/test_openassessment.py @@ -728,18 +728,6 @@ def test_mfe_views_supported__leaderboard(self, xblock, mock_value, expected_sup # Then they are unsupported for ORAs with leaderboards self.assertEqual(xblock.mfe_views_supported, expected_supported) - @ddt.unpack - @ddt.data((True, False), (False, True)) - @patch.object(openassessmentblock.OpenAssessmentBlock, 'allow_latex', new_callable=PropertyMock) - @scenario('data/simple_self_staff_scenario.xml') - def test_mfe_views_supported__latex(self, xblock, mock_value, expected_supported, mock_allow_latex): - # Given I'm on / not on an ORA with a leaderboard - mock_allow_latex.return_value = mock_value - - # When I see if MFE views are supported - # Then they are unsupported for ORAs with leaderboards - self.assertEqual(xblock.mfe_views_supported, expected_supported) - @scenario('data/assessment_steps_reordered.xml') def test_mfe_views_supported__rearranged_steps(self, xblock): # Given this ORA has rearranged our assessment steps diff --git a/package-lock.json b/package-lock.json index 61a2936e6c..707975238a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "edx-ora2", - "version": "6.0.26", + "version": "6.0.27", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "edx-ora2", - "version": "6.0.24", + "version": "6.0.27", "dependencies": { "@edx/frontend-build": "8.0.6", "@openedx/paragon": "^21.5.7", diff --git a/package.json b/package.json index 7bf982f86a..d99c94d11a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "edx-ora2", - "version": "6.0.26", + "version": "6.0.27", "repository": "https://github.com/openedx/edx-ora2.git", "dependencies": { "@edx/frontend-build": "8.0.6",