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

Can't use with pytest-django and pytest-dotenv #51

Open
mihalt opened this issue Jun 7, 2022 · 1 comment
Open

Can't use with pytest-django and pytest-dotenv #51

mihalt opened this issue Jun 7, 2022 · 1 comment

Comments

@mihalt
Copy link

mihalt commented Jun 7, 2022

Hi! I am using pytest-dotenv, but it installs python-doenv by default and can't work without it. So, I have error when run django AttributeError: module 'dotenv' has no attribute 'read_dotenv'. Did you mean: 'load_dotenv'?. When run tests, all is fine.

What could you offer to prevent it?

@woutervh
Copy link

see #50

this module should be renamed to django_dotenv.

You can still alias this for your own backwards compatibility

>>> import django_dotenv as dotenv

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

No branches or pull requests

2 participants