Skip to content

Commit

Permalink
style: [AXM-644] add missing docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
NiedielnitsevIvan committed Jun 17, 2024
1 parent 632f18a commit 38788b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openedx/features/offline_mode/assets_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ def save_asset_file(temp_dir, xblock, path, filename):


def create_subdirectories_for_asset(file_path):
"""
Creates the subdirectories for the asset file path if they do not exist.
"""
out_dir_name = '/'
for dir_name in file_path.split('/')[:-1]:
out_dir_name = os.path.join(out_dir_name, dir_name)
Expand Down
3 changes: 3 additions & 0 deletions openedx/features/offline_mode/tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""
Tests for view that handles course published event.
"""
from unittest.mock import patch

from django.test import TestCase, RequestFactory
Expand Down

0 comments on commit 38788b4

Please sign in to comment.