Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove reference to psycopg2 from default param value, function body #370

Merged
merged 2 commits into from
Feb 22, 2021

Conversation

jdavcs
Copy link
Contributor

@jdavcs jdavcs commented Feb 19, 2021

Fixes #369.

The default value for the isolation_level parameter introduced in #358 breaks pytest if psycopg2 is not installed. See #369 for detailed rationale. The proposed solution removes the reference to psycopg2 from factories.py and moves it into the method body in janitor.py. The original behavior is preserved.

@coveralls
Copy link

coveralls commented Feb 19, 2021

Coverage Status

Coverage remained the same at 65.971% when pulling c7df6be on ic4f:dev_fix_358 into 18067fb on ClearcodeHQ:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 65.971% when pulling a8c84fe on ic4f:dev_fix_358 into 18067fb on ClearcodeHQ:master.

src/pytest_postgresql/factories.py Outdated Show resolved Hide resolved
@fizyk
Copy link
Member

fizyk commented Feb 19, 2021

other than I'm okay with everything :)

@fizyk
Copy link
Member

fizyk commented Feb 22, 2021

Thanks for the fix, I've merged it. Have some followup commit and I'll prepare a patch release then

@jdavcs
Copy link
Contributor Author

jdavcs commented Feb 22, 2021

Thank you - very much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default parameter value breaks pytest if psycopg not installed
3 participants