-
Notifications
You must be signed in to change notification settings - Fork 18
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
pytest-dotenv with pytest instead of py.test does not allow cli args #19
Comments
I have tested this and for me
$ pip freeze | grep pytest-dot
pytest-dotenv==0.5.2 |
Looks like this is because .env is loaded by default if |
Thanks! I can try to look into this. Do you by chance have a minimal setup example that I can try @belkka ? |
I can confirm that this still doesn't work. |
If
pytest
is used pytest-dotenv will only load an environment file from thepytest.ini
. Ifpy.test
is used then the cli arg--envfile
will be used.pytest --envfile <path to .env>
does nothing and will fallback to the config given inpytest.ini
The text was updated successfully, but these errors were encountered: