From: Daniele Varrazzo Date: Mon, 28 Jun 2021 02:29:33 +0000 (+0100) Subject: Fix test if the connection string specifies a password X-Git-Tag: 3.0.dev0~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=46e42927dd4c33c75bc2bb33f429d78885d15133;p=thirdparty%2Fpsycopg.git Fix test if the connection string specifies a password --- diff --git a/tests/test_conninfo.py b/tests/test_conninfo.py index d98e0c543..d1a44501d 100644 --- a/tests/test_conninfo.py +++ b/tests/test_conninfo.py @@ -161,7 +161,10 @@ class TestConnectionInfo: def test_get_params(self, conn, dsn): info = conn.info.get_parameters() for k, v in conninfo_to_dict(dsn).items(): - assert info.get(k) == v + if k != "password": + assert info.get(k) == v + else: + assert k not in info def test_get_params_env(self, dsn, monkeypatch): dsn = conninfo_to_dict(dsn)