quiqua / pytest-dotenv

A py.test plugin that parses environment files before running tests
MIT License
188 stars 18 forks source link

pytest-dotenv doesn't load env file from current directory when virtualenv been used #5

Closed jianingy closed 5 years ago

jianingy commented 6 years ago

Hi,

It seems this is a problem which has just been fixed by python-dotenv upstream (https://github.com/theskumar/python-dotenv/issues/108 ) . It would be better if a 'usecwd=True' been added to find_dotenv in plugin.py.

Thanks very much

quiqua commented 5 years ago

Fixed by #6