(dotenv_file)
| 285 | |
| 286 | @mock.patch.dict(os.environ, {"a": "c"}, clear=True) |
| 287 | def test_load_dotenv_existing_variable_override(dotenv_file): |
| 288 | with open(dotenv_file, "w") as f: |
| 289 | f.write("a=b") |
| 290 | |
| 291 | result = dotenv.load_dotenv(dotenv_file, override=True) |
| 292 | |
| 293 | assert result is True |
| 294 | assert os.environ == {"a": "b"} |
| 295 | |
| 296 | |
| 297 | @mock.patch.dict(os.environ, {"a": "c"}, clear=True) |
nothing calls this directly
no outgoing calls
no test coverage detected