Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 379 Bytes

File metadata and controls

8 lines (6 loc) · 379 Bytes

To test the postgresql part of the code you can use the environment variables like this:

env SQLUTIL_TEST_PG_USER=skoposov SQLUTIL_TEST_PG_HOST=localhost SQLUTIL_TEST_PG_DB=test SQLUTIL_TEST_PG_PASS="" pytest

assuming you have a local postgresql database called test. If the database listens on a non-standard port, you can also set SQLUTIL_TEST_PG_PORT (the default is 5432).