From fd0723f5122ab43f2273097df05a04f2b76aa979 Mon Sep 17 00:00:00 2001 From: farhan Date: Mon, 2 Oct 2023 19:36:25 +0500 Subject: [PATCH] fix: fix test cases --- tests/unit/test_settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/test_settings.py b/tests/unit/test_settings.py index 4c2caa9..80df76f 100644 --- a/tests/unit/test_settings.py +++ b/tests/unit/test_settings.py @@ -117,7 +117,7 @@ def test_theme_files_are_loaded_from_correct_package(self, xblock_class): package_name = 'some_package' theme_config = {xblock_class.theme_key: {'package': package_name, 'locations': ['lms.css']}} self.service_mock.get_settings_bucket = Mock(return_value=theme_config) - with patch("xblockutils.settings.ResourceLoader") as patched_resource_loader: + with patch("xblock.utils.settings.ResourceLoader") as patched_resource_loader: xblock.include_theme_files(fragment) patched_resource_loader.assert_called_with(package_name) @@ -133,7 +133,7 @@ def test_theme_files_are_added_to_fragment(self, package_name, locations): fragment = MagicMock() theme_config = {DummyXBlockWithSettings.theme_key: {'package': package_name, 'locations': locations}} self.service_mock.get_settings_bucket = Mock(return_value=theme_config) - with patch("xblockutils.settings.ResourceLoader.load_unicode") as patched_load_unicode: + with patch("xblock.utils.settings.ResourceLoader.load_unicode") as patched_load_unicode: xblock.include_theme_files(fragment) for location in locations: patched_load_unicode.assert_any_call(location) @@ -146,6 +146,6 @@ def test_invalid_default_theme_config(self, theme_config): xblock.default_theme_config = theme_config self.service_mock.get_settings_bucket = Mock(return_value={}) fragment = MagicMock() - with patch("xblockutils.settings.ResourceLoader.load_unicode") as patched_load_unicode: + with patch("xblock.utils.settings.ResourceLoader.load_unicode") as patched_load_unicode: xblock.include_theme_files(fragment) patched_load_unicode.assert_not_called()