]> git.openstreetmap.org Git - nominatim.git/commitdiff
replace test variable for PG env tests
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 1 Oct 2021 08:51:41 +0000 (10:51 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 1 Oct 2021 10:27:24 +0000 (12:27 +0200)
'tty' was removed in PG14 and causes an error.

test/python/test_db_connection.py

index 41978e59135513682cb04bc088d00338df78c499..00c29a43a9a8bdf32f9531199ac0b6335fb5a502 100644 (file)
@@ -100,6 +100,6 @@ def test_get_pg_env_overwrite_variable(monkeypatch):
 
 
 def test_get_pg_env_ignore_unknown():
-    env = get_pg_env('tty=stuff', base_env={})
+    env = get_pg_env('client_encoding=stuff', base_env={})
 
     assert env == {}