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:
Joshua Pan
2018-05-14 11:45:32 -04:00
committed by Tim Abbott
parent dc7f6c8a48
commit 231b487bca
2 changed files with 5 additions and 1 deletions

View File

@@ -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