From bd41dcdf197192f2509f9f3cc5acf8da9373264f Mon Sep 17 00:00:00 2001 From: Muhammad Farhan Khan Date: Sat, 21 Sep 2024 16:41:00 +0500 Subject: [PATCH] chore: chore --- xmodule/tests/test_util_builtin_assets.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xmodule/tests/test_util_builtin_assets.py b/xmodule/tests/test_util_builtin_assets.py index 33aa5313ba4..1e5ccef4e05 100644 --- a/xmodule/tests/test_util_builtin_assets.py +++ b/xmodule/tests/test_util_builtin_assets.py @@ -112,10 +112,12 @@ def test_misspelled_path_raises_not_found(self): def test_happy_path(self): fragment = Fragment() builtin_assets.add_css_to_fragment(fragment, "VideoBlockEditor.css") - assert fragment.resources[0] == FragmentResource( - kind='url', + fr = FragmentResource( + # kind='url', # data=f'{settings.REPO_ROOT}/xmodule/assets/VideoBlockEditor.css', + kind='text', data=PosixPath(f"{settings.REPO_ROOT}/xmodule/assets/VideoBlockEditor.css").read_text(encoding="utf-8"), mimetype='text/css', placement='head', ) + assert fragment.resources[0] == fr