CloverHealth / pytest-pgsql

Clean PostgreSQL Databases for Your Tests
http://pytest-pgsql.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
65 stars 4 forks source link

Add postgresql.conf options #15

Closed jsnb closed 4 years ago

jsnb commented 4 years ago

Changes:

  1. Adds a new flag --pg-conf-opt to update postgres configs. I needed this to enable the track_commit_timestamp config. Code was effectively copied from the suggestion in this old issue: https://github.com/CloverHealth/pytest-pgsql/issues/11

  2. Small change to the clean_db fixture to avoid deprecated usage of direct fixtures (https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly)

Note: Upgraded the Circle config.yaml to circle v2.0 Had to uncheck this setting in the repo settings: https://circleci.com/docs/2.0/workflows/#workflows-waiting-for-status-in-github