]> git.ipfire.org Git - thirdparty/psycopg.git/commit
test: fix test failing to connect if env vars are cleaned 682/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 09:12:01 +0000 (10:12 +0100)
commit75c89c3edf14cbae630db10f2b1e8d9bf9834e48
tree68f673650729da37beb1c9b6e97a6d3f57598d9f
parentb6b31c318233fcf36d6808a4c71d0a897c891105
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