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