Commit fb5d598
refactor: migrate ENABLE_COURSE_FILENAME_CCX_SUFFIX off FEATURES-as-dict
`common/djangoapps/util/file.py` read the flag via
`settings.FEATURES.get('ENABLE_COURSE_FILENAME_CCX_SUFFIX', False)`. The
setting is defined only in lms/envs/common.py, but this reader lives in
common/ and is reachable from CMS, so use
`getattr(settings, 'ENABLE_COURSE_FILENAME_CCX_SUFFIX', False)` to avoid an
AttributeError under Studio settings. Convert the test's whole-dict
`@override_settings(FEATURES={...})` to
`@override_settings(ENABLE_COURSE_FILENAME_CCX_SUFFIX=True)`. Verified the
CCX-suffix tests pass under both lms.envs.test and cms.envs.test.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 07a0997 commit fb5d598
2 files changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | | - | |
| 118 | + | |
| 119 | + | |
121 | 120 | | |
122 | 121 | | |
123 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments