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

Function test_dotenv_values_string_io

tests/test_main.py:408–415  ·  view source on GitHub ↗
(env, string, interpolate, expected)

Source from the content-addressed store, hash-verified

406 ],
407)
408def test_dotenv_values_string_io(env, string, interpolate, expected):
409 with mock.patch.dict(os.environ, env, clear=True):
410 stream = io.StringIO(string)
411 stream.seek(0)
412
413 result = dotenv.dotenv_values(stream=stream, interpolate=interpolate)
414
415 assert result == expected
416
417
418def test_dotenv_values_file_stream(dotenv_file):

Callers

nothing calls this directly

Calls 1

dictMethod · 0.80

Tested by

no test coverage detected