(dotenv_file)
| 253 | |
| 254 | @mock.patch.dict(os.environ, {}, clear=True) |
| 255 | def 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 | |
| 265 | def test_load_dotenv_no_file_verbose(): |
nothing calls this directly
no outgoing calls
no test coverage detected