Mercurial > p > roundup > code
view test/pg_service.conf @ 7841:673bb9cb41b4
test: fix ImportError if psycopg2 not installed
test_postgresql was reaching into roundup.backends.back_postgresql
before checking to see if psycopg2 was available. Move the (partly
duplicated) import inside the guard so it imports only if psycopg2 is
available.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 26 Mar 2024 22:35:24 -0400 |
| parents | 8147f6deac9f |
| children |
line wrap: on
line source
[roundup_test_db] host=127.0.0.1 port=5432 user=rounduptest password=rounduptest dbname=rounduptest [roundup_test_schema] host=127.0.0.1 port=5432 user=rounduptest_schema password=rounduptest dbname=rounduptest_schema options=-c search_path=roundup_service_dev [roundup_test_schema_bad] host=127.0.0.1 port=5432 user=rounduptest_schema password=rounduptest dbname=rounduptest_schema options=-c search_path=
