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

Function test_run

tests/test_cli.py:165–173  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

163
164
165def test_run(tmp_path):
166 with sh.pushd(str(tmp_path)):
167 dotenv_file = str(tmp_path / ".env")
168 with open(dotenv_file, "w") as f:
169 f.write("a=b")
170
171 result = sh.dotenv("run", "printenv", "a")
172
173 assert result == "b\n"
174
175
176def test_run_with_existing_variable(tmp_path):

Callers

nothing calls this directly

Calls 1

dotenvMethod · 0.80

Tested by

no test coverage detected