Closed Elijas closed 1 year ago
Is there a work around for this? edit: The standard fix for maintaining {} in format strings through format works for this.
[pytest]
env =
JSON={{"key": "value"}}
Development moved to https://github.com/pytest-dev/pytest-env
Development moved to https://github.com/pytest-dev/pytest-env
Thanks for letting us know! I've recreated the issue there.
Error
Fails with the following configuration
pytest.ini
due to
plugin.py
Simple suggestion:
use
R:
flag meaningRaw value
(similar to python'sr"raw string"
) that will skip thevalue.format
command. Yes, this way we won't be able to use other env variables in json/dict env variables, but in the current situation it's impossible to have json/dict env variables at all!