This PR will add the option to specify a .env file (or similar) via the newly introduced command line option --envfile.
When this option is present, it will load the file and set all declared environment variables and ignores the setting env_override_existing_values specified in the pytest.ini file.
Futhermore the hook has been moved to sessionstart and tests have been added.
This PR will add the option to specify a
.env
file (or similar) via the newly introduced command line option--envfile
.When this option is present, it will load the file and set all declared environment variables and ignores the setting
env_override_existing_values
specified in thepytest.ini
file.Futhermore the hook has been moved to
sessionstart
and tests have been added.