Skip to content

Commit 8b509eb

Browse files
fixup! refactor: move explicitly shared settings into new common module
1 parent 9c610f5 commit 8b509eb

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ omit =
2525
common/djangoapps/*/migrations/*
2626
openedx/core/djangoapps/*/migrations/*
2727
openedx/core/djangoapps/debug/*
28+
openedx/envs/*
2829
openedx/features/*/migrations/*
2930

3031
concurrency=multiprocessing

.coveragerc-local

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ omit =
2424
common/djangoapps/*/migrations/*
2525
openedx/core/djangoapps/*/migrations/*
2626
openedx/core/djangoapps/debug/*
27+
openedx/envs/*
2728
openedx/features/*/migrations/*
2829

2930
concurrency=multiprocessing

lms/envs/docs/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
LMS Configuration Settings
22
##########################
33

4-
The ``lms.envs`` module contains project-wide settings, defined in python modules
4+
The ``lms.envs`` module contains lms related settings, defined in python modules
55
using the standard `Django Settings`_ mechanism, plus some Open edX
66
particularities, which we describe below.
77

openedx/core/djangoapps/user_authn/views/tests/test_register.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2962,7 +2962,7 @@ def test_username_invalid_ascii_validation_decision(self, username):
29622962
)
29632963
])
29642964
def test_password_empty_validation_decision(self):
2965-
# 2 is the default setting for minimum length found in lms/envs/common.py
2965+
# 2 is the default setting for minimum length found in openedx/envs/common.py
29662966
# under AUTH_PASSWORD_VALIDATORS.MinimumLengthValidator
29672967
msg = 'This password is too short. It must contain at least 4 characters.'
29682968
self.assertValidationDecision(
@@ -2977,7 +2977,7 @@ def test_password_empty_validation_decision(self):
29772977
])
29782978
def test_password_bad_min_length_validation_decision(self):
29792979
password = 'p'
2980-
# 2 is the default setting for minimum length found in lms/envs/common.py
2980+
# 2 is the default setting for minimum length found in openedx/envs/common.py
29812981
# under AUTH_PASSWORD_VALIDATORS.MinimumLengthValidator
29822982
msg = 'This password is too short. It must contain at least 4 characters.'
29832983
self.assertValidationDecision(
@@ -2987,7 +2987,7 @@ def test_password_bad_min_length_validation_decision(self):
29872987

29882988
def test_password_bad_max_length_validation_decision(self):
29892989
password = 'p' * DEFAULT_MAX_PASSWORD_LENGTH
2990-
# 75 is the default setting for maximum length found in lms/envs/common.py
2990+
# 75 is the default setting for maximum length found in openedx/envs/common.py
29912991
# under AUTH_PASSWORD_VALIDATORS.MaximumLengthValidator
29922992
msg = 'This password is too long. It must contain no more than 75 characters.'
29932993
self.assertValidationDecision(

scripts/vulture/find-dead-code.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ echo '' > "$OUTPUT_FILE"
3737
# exclude test code from analysis, as it isn't explicitly called by other
3838
# code. Additionally, application code that is only called by tests
3939
# should be considered dead
40-
EXCLUSIONS='/test,/acceptance,cms/envs,lms/envs,migrations/,signals.py'
40+
EXCLUSIONS='/test,/acceptance,cms/envs,lms/envs,openedx/envs,migrations/,signals.py'
4141
MIN_CONFIDENCE=90
4242
# paths to the code on which to run the analysis
4343
CODE_PATHS=('cms' 'common' 'lms' 'openedx')

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ filterwarnings =
2020
ignore:'etree' is deprecated. Use 'xml.etree.ElementTree' instead.:DeprecationWarning:wiki
2121

2222
junit_family = xunit2
23-
norecursedirs = .* *.egg build conf dist node_modules test_root cms/envs lms/envs
23+
norecursedirs = .* *.egg build conf dist node_modules test_root cms/envs lms/envs openedx/envs
2424
python_classes =
2525
python_files = tests.py test_*.py tests_*.py *_tests.py __init__.py
2626

0 commit comments

Comments
 (0)