Check that postal codes are strings in config
This commit is contained in:
parent
4a65f52475
commit
571b42f5b1
@ -163,6 +163,7 @@ def validate_config(config, check_with_data):
|
|||||||
|
|
||||||
assert "postal_codes" in constraint
|
assert "postal_codes" in constraint
|
||||||
assert constraint["postal_codes"]
|
assert constraint["postal_codes"]
|
||||||
|
assert all(isinstance(x, str) for x in constraint["postal_codes"])
|
||||||
if check_with_data:
|
if check_with_data:
|
||||||
opendata_postal_codes = [
|
opendata_postal_codes = [
|
||||||
x.postal_code
|
x.postal_code
|
||||||
|
Loading…
Reference in New Issue
Block a user