From 6835caa953ae0002fb3a7e28789e5d017816210d Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Sun, 22 Dec 2024 13:21:31 +0300 Subject: [PATCH] fix: default course-effort-value --- .../helpers/settings/common_production.py | 4 ++-- tests/test_helpers/test_apps.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/futurex_openedx_extensions/helpers/settings/common_production.py b/futurex_openedx_extensions/helpers/settings/common_production.py index d6053714..d97a0c1a 100644 --- a/futurex_openedx_extensions/helpers/settings/common_production.py +++ b/futurex_openedx_extensions/helpers/settings/common_production.py @@ -33,9 +33,9 @@ def plugin_settings(settings: Any) -> None: 'fx_dashboard' ) - # Default Course EFfort + # Default Course Effort settings.FX_DEFAULT_COURSE_EFFORT = getattr( settings, 'FX_DEFAULT_COURSE_EFFORT', - '12', + 12, ) diff --git a/tests/test_helpers/test_apps.py b/tests/test_helpers/test_apps.py index 7a0b1e4d..d087c131 100644 --- a/tests/test_helpers/test_apps.py +++ b/tests/test_helpers/test_apps.py @@ -12,6 +12,8 @@ ('FX_CACHE_TIMEOUT_COURSE_ACCESS_ROLES', 60 * 30), # 30 minutes ('FX_CACHE_TIMEOUT_TENANTS_INFO', 60 * 60 * 2), # 2 hours ('FX_CACHE_TIMEOUT_VIEW_ROLES', 60 * 30), # 30 minutes + ('FX_DASHBOARD_STORAGE_DIR', 'fx_dashboard'), # fx_dashboard + ('FX_DEFAULT_COURSE_EFFORT', 12), # 12 hours ]