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

Function test_load_dotenv_existing_file

tests/test_main.py:255–262  ·  view source on GitHub ↗
(dotenv_file)

Source from the content-addressed store, hash-verified

253
254@mock.patch.dict(os.environ, {}, clear=True)
255def test_load_dotenv_existing_file(dotenv_file):
256 with open(dotenv_file, "w") as f:
257 f.write("a=b")
258
259 result = dotenv.load_dotenv(dotenv_file)
260
261 assert result is True
262 assert os.environ == {"a": "b"}
263
264
265def test_load_dotenv_no_file_verbose():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected