test: test_capa_system helper function replaced by mock_capa_system

This commit is contained in:
Daniel Wong
2025-05-09 16:03:30 -06:00
parent 77eb6e8254
commit 204a1eb438
9 changed files with 51 additions and 52 deletions

View File

@@ -9,7 +9,7 @@ import unittest
import ddt
from lxml import etree
from xmodule.capa.tests.helpers import test_capa_system
from xmodule.capa.tests.helpers import mock_capa_system
from xmodule.capa.util import (
compare_with_tolerance,
contextualize_text,
@@ -25,7 +25,7 @@ class UtilTest(unittest.TestCase):
def setUp(self):
super(UtilTest, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments
self.system = test_capa_system()
self.system = mock_capa_system()
def test_compare_with_tolerance(self): # lint-amnesty, pylint: disable=too-many-statements
# Test default tolerance '0.001%' (it is relative)