]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix reset country info before loading custom data
authorTareq Al-Ahdal <tareqoalahdal@gmail.com>
Fri, 1 Apr 2022 13:55:34 +0000 (21:55 +0800)
committerTareq Al-Ahdal <tareqoalahdal@gmail.com>
Fri, 1 Apr 2022 13:55:34 +0000 (21:55 +0800)
test/python/tools/test_country_info.py

index f08320655fdde3eb32e64c4519aee740f12e011b..2651ebd3cfaa53f75b4674ea9480a5f0a2eb91ec 100644 (file)
@@ -71,6 +71,7 @@ de:
         name:
             default: Deutschland
 """)
+    country_info._COUNTRY_INFO._info = None
     country_info.setup_country_config(project_env)
     assert country_info._COUNTRY_INFO._info == {'de': {'partition': 3, 
             'languages': [], 'names': {'name': {'default': 'Deutschland'}}}}