Skip to content

Commit

Permalink
chore: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVZ96 committed Dec 21, 2024
1 parent c7c3e75 commit 6637b47
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ def test_asset_filenames(self):
file_name = "a////////b"
self._set_library_block_asset(block_id, file_name, SVG_DATA, expect_response=400)

# Names with spaces are allowed but replaced with underscores
file_name_with_space = "o w o.svg"
self._set_library_block_asset(block_id, file_name_with_space, SVG_DATA)
file_name = "o_w_o.svg"
assert self._get_library_block_asset(block_id, file_name)['path'] == file_name
assert self._get_library_block_asset(block_id, file_name)['size'] == file_size

def test_video_transcripts(self):
"""
Test that video blocks can read transcript files out of learning core.
Expand Down

0 comments on commit 6637b47

Please sign in to comment.