]> git.ipfire.org Git - thirdparty/psycopg.git/commit
test: fix test failing to connect if env vars are cleaned 683/head
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 21 Nov 2023 08:49:24 +0000 (09:49 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 21 Nov 2023 08:49:24 +0000 (09:49 +0100)
commit2c875d102c4172cd9a807a5acfe4ddaa2f2b1abc
treeb8045df59d6908fc7c276f01c57d3898c5e820ce
parentf060855aa6126e811de243c7213d2caff9c88123
test: fix test failing to connect if env vars are cleaned

Add `dsn_env` fixture returning the `dsn` merged with the values in the
PG* env vars. This way the env can be cleaned but a working connection
string is still available.
tests/fix_db.py
tests/test_module.py