]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/tools/test_refresh_setup_website.py
Merge pull request #3321 from lonvia/remove-duplicate-partials
[nominatim.git] / test / python / tools / test_refresh_setup_website.py
index 12f5df82bd73fb64d95da518bcffe099dffb5b29..52b857c43ada7a536c689d1937c56142beefc7d9 100644 (file)
@@ -1,3 +1,9 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# This file is part of Nominatim. (https://nominatim.org)
+#
+# Copyright (C) 2022 by the Nominatim developer community.
+# For a full list of authors see the git log.
 """
 Tests for setting up the website scripts.
 """
 """
 Tests for setting up the website scripts.
 """
@@ -89,3 +95,10 @@ def test_relative_log_file(project_env, monkeypatch, test_script, run_website_sc
 
     assert run_website_script() == 10
 
 
     assert run_website_script() == 10
 
+def test_variable_with_bracket(project_env, monkeypatch, test_script, run_website_script):
+    monkeypatch.setenv('NOMINATIM_DATABASE_DSN', 'pgsql:dbname=nominatim;user=foo;password=4{5')
+
+    test_script('exit(CONST_Database_DSN === "pgsql:dbname=nominatim;user=foo;password=4{5" ? 10 : 20);')
+
+    assert run_website_script() == 10
+