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

Function test_get_existing_value

tests/test_cli.py:59–65  ·  view source on GitHub ↗
(cli, dotenv_file)

Source from the content-addressed store, hash-verified

57
58
59def test_get_existing_value(cli, dotenv_file):
60 with open(dotenv_file, "w") as f:
61 f.write("a=b")
62
63 result = cli.invoke(dotenv_cli, ['--file', dotenv_file, 'get', 'a'])
64
65 assert (result.exit_code, result.output) == (0, "b\n")
66
67
68def test_get_non_existent_value(cli, dotenv_file):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected