diff --git a/xmodule/tests/test_util_builtin_assets.py b/xmodule/tests/test_util_builtin_assets.py index acfd3806d09b..33aa5313ba4c 100644 --- a/xmodule/tests/test_util_builtin_assets.py +++ b/xmodule/tests/test_util_builtin_assets.py @@ -1,6 +1,8 @@ """ Tests for methods defined in builtin_assets.py """ +from pathlib import PosixPath + from django.conf import settings from unittest import TestCase from unittest.mock import patch @@ -112,7 +114,8 @@ def test_happy_path(self): builtin_assets.add_css_to_fragment(fragment, "VideoBlockEditor.css") assert fragment.resources[0] == FragmentResource( kind='url', - data=f'{settings.REPO_ROOT}/xmodule/assets/VideoBlockEditor.css', + # data=f'{settings.REPO_ROOT}/xmodule/assets/VideoBlockEditor.css', + data=PosixPath(f"{settings.REPO_ROOT}/xmodule/assets/VideoBlockEditor.css").read_text(encoding="utf-8"), mimetype='text/css', placement='head', )