MCPcopy Create free account
hub / github.com/theskumar/python-dotenv / test_set_quote_options

Function test_set_quote_options

tests/test_cli.py:115–122  ·  view source on GitHub ↗
(cli, dotenv_file, quote_mode, variable, value, expected)

Source from the content-addressed store, hash-verified

113 )
114)
115def test_set_quote_options(cli, dotenv_file, quote_mode, variable, value, expected):
116 result = cli.invoke(
117 dotenv_cli,
118 ["--file", dotenv_file, "--export", "false", "--quote", quote_mode, "set", variable, value]
119 )
120
121 assert (result.exit_code, result.output) == (0, "{}={}\n".format(variable, value))
122 assert open(dotenv_file, "r").read() == expected
123
124
125@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected