mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
tests: Cover check_config() in zerver/lib/management.py.
Add a comment to code to clarify what the config check does.
This commit is contained in:
@@ -19,6 +19,8 @@ def is_integer_string(val: str) -> bool:
|
||||
|
||||
def check_config() -> None:
|
||||
for (setting_name, default) in settings.REQUIRED_SETTINGS:
|
||||
# if required setting is the same as default OR is not found in settings,
|
||||
# throw error to add/set that setting in config
|
||||
try:
|
||||
if settings.__getattr__(setting_name) != default:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user