Closed mgedmin closed 5 months ago
Hopefully fixed in https://github.com/schireson/pytest-mock-resources/pull/208 a little bit ago? 2.10.3
Wow, that PR was opened 30 minutes before I submitted this ticket. I will claim that I searched for existing issues, didn't find one, and then spent 30 minutes composing this one. ;-)
Describe the bug
My tox.ini lists the following deps:
and
requirements.txt
hasThis used to work fine, but with recent pytest-mock-resources releases I'm getting test failures everywhere with this error:
Environment
To Reproduce Steps to reproduce the behavior:
virtualenv testenv && testenv/bin/pip install pytest-mock-resources[postgres-binary]
testenv/bin/python -c 'from pytest_mock_resources.container.postgres import detect_driver; print(detect_driver())'
Expected behavior I expected it to print
postgresql+psycopg2
.Actual Behavior
Additional context BTW
testenv/bin/pip list
confirms that psycopg2-binary is installed.