Function
test_dotenv_values_string_io
(env, string, interpolate, expected)
Source from the content-addressed store, hash-verified
| 406 | ], |
| 407 | ) |
| 408 | def 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 | |
| 418 | def test_dotenv_values_file_stream(dotenv_file): |
Callers
nothing calls this directly
Tested by
no test coverage detected