]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/tools/test_refresh_setup_website.py
return an error when q is used together with structured parameters
[nominatim.git] / test / python / tools / test_refresh_setup_website.py
index af3804c91cdd1148357db9e9cf4cf5cf7420ad97..52b857c43ada7a536c689d1937c56142beefc7d9 100644 (file)
@@ -95,3 +95,10 @@ def test_relative_log_file(project_env, monkeypatch, test_script, run_website_sc
 
     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
+