diff --git a/openedx/features/offline_mode/assets_management.py b/openedx/features/offline_mode/assets_management.py index 3594d31c24c0..38462a8e3ccc 100644 --- a/openedx/features/offline_mode/assets_management.py +++ b/openedx/features/offline_mode/assets_management.py @@ -69,7 +69,7 @@ def save_asset_file(temp_dir, xblock, path, filename): def create_subdirectories_for_asset(file_path): """ - Creates subdirectories for asset. + Creates the subdirectories for the asset file path if they do not exist. """ out_dir_name = '/' for dir_name in file_path.split('/')[:-1]: diff --git a/openedx/features/offline_mode/tests/test_views.py b/openedx/features/offline_mode/tests/test_views.py index 87fea7c79268..a4478d8796ab 100644 --- a/openedx/features/offline_mode/tests/test_views.py +++ b/openedx/features/offline_mode/tests/test_views.py @@ -1,3 +1,6 @@ +""" +Tests for view that handles course published event. +""" from unittest.mock import patch from django.test import TestCase, RequestFactory