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

Function test_run_with_none_value

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

Source from the content-addressed store, hash-verified

200
201
202def test_run_with_none_value(tmp_path):
203 with sh.pushd(str(tmp_path)):
204 dotenv_file = str(tmp_path / ".env")
205 with open(dotenv_file, "w") as f:
206 f.write("a=b\nc")
207
208 result = sh.dotenv("run", "printenv", "a")
209
210 assert result == "b\n"
211
212
213def test_run_with_other_env(dotenv_file):

Callers

nothing calls this directly

Calls 1

dotenvMethod · 0.80

Tested by

no test coverage detected