Open JeffWScott opened 5 years ago
it seems to weird using python syntax in ini
file.
i'm not sure about tox and conftest.ini, i suggest appropriate syntax for file format.
if use conftest.ini
key = {API_KEY}
or in conftest.py
key = os.environ['API_KEY']
Development moved to https://github.com/pytest-dev/pytest-env
I'm not sure why it's so hard to get system environmental variables into TOX. I mean, how else do you use secret API keys in a shared environment (ie, not cloning them to github).
So I came across pytest-env because it looked exactly like I want, but it doesn't seem to be as easy as your readme would have me believe.
This is my pytest.ini
In my conftest.ini I use it like this.
running tox gives me this error
What do you think I'm doing wrong?