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

Function test_get_default_path

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

Source from the content-addressed store, hash-verified

153
154
155def test_get_default_path(tmp_path):
156 with sh.pushd(str(tmp_path)):
157 with open(str(tmp_path / ".env"), "w") as f:
158 f.write("a=b")
159
160 result = sh.dotenv("get", "a")
161
162 assert result == "b\n"
163
164
165def test_run(tmp_path):

Callers

nothing calls this directly

Calls 1

dotenvMethod · 0.80

Tested by

no test coverage detected