(dotenv_file)
| 328 | |
| 329 | @mock.patch.dict(os.environ, {}, clear=True) |
| 330 | def test_load_dotenv_file_stream(dotenv_file): |
| 331 | with open(dotenv_file, "w") as f: |
| 332 | f.write("a=b") |
| 333 | |
| 334 | with open(dotenv_file, "r") as f: |
| 335 | result = dotenv.load_dotenv(stream=f) |
| 336 | |
| 337 | assert result is True |
| 338 | assert os.environ == {"a": "b"} |
| 339 | |
| 340 | |
| 341 | def test_load_dotenv_in_current_dir(tmp_path): |
nothing calls this directly
no outgoing calls
no test coverage detected