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 563572a commit bd41dcd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xmodule/tests/test_util_builtin_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bd41dcd

Please sign in to comment.