mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
add tests for get_string_list()
Renaming test file for sanitizer config because pytest requires unique names for test files.
This commit is contained in:
@@ -33,7 +33,7 @@ class SanitizerConfig(UserDict):
|
||||
return None if default is None else list(default)
|
||||
|
||||
if isinstance(values, str):
|
||||
return [values]
|
||||
return [values] if values else []
|
||||
|
||||
if not isinstance(values, (list, tuple)):
|
||||
raise UsageError(f"Parameter '{param}' must be string or list of strings.")
|
||||
|
||||
Reference in New Issue
Block a user