Skip to content

Commit

Permalink
chore: chore
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan committed Sep 21, 2024
1 parent 6402e81 commit 563572a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xmodule/tests/test_util_builtin_assets.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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',
)

0 comments on commit 563572a

Please sign in to comment.