(env, string, interpolate, expected)
| 679 | ], |
| 680 | ) |
| 681 | def test_dotenv_values_string_io(env, string, interpolate, expected): |
| 682 | with mock.patch.dict(os.environ, env, clear=True): |
| 683 | stream = io.StringIO(string) |
| 684 | stream.seek(0) |
| 685 | |
| 686 | result = dotenv.dotenv_values(stream=stream, interpolate=interpolate) |
| 687 | |
| 688 | assert result == expected |
| 689 | |
| 690 | |
| 691 | def test_dotenv_values_file_stream(dotenv_path): |
nothing calls this directly
no test coverage detected
searching dependent graphs…