From c8ff00aa1d549986856f614c12f33b4b024d4443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=86=D0=B2=D0=B0=D0=BD=20=D0=9D=D1=94=D0=B4=D1=94=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=96=D1=86=D0=B5=D0=B2?= Date: Mon, 17 Jun 2024 10:37:34 +0300 Subject: [PATCH] style: [AXM-644] add missing docstrings --- openedx/features/offline_mode/assets_management.py | 2 +- openedx/features/offline_mode/tests/test_views.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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