()
| 263 | |
| 264 | |
| 265 | def test_load_dotenv_no_file_verbose(): |
| 266 | logger = logging.getLogger("dotenv.main") |
| 267 | |
| 268 | with mock.patch.object(logger, "info") as mock_info: |
| 269 | result = dotenv.load_dotenv('.does_not_exist', verbose=True) |
| 270 | |
| 271 | assert result is False |
| 272 | mock_info.assert_called_once_with("Python-dotenv could not find configuration file %s.", ".does_not_exist") |
| 273 | |
| 274 | |
| 275 | @mock.patch.dict(os.environ, {"a": "c"}, clear=True) |
nothing calls this directly
no outgoing calls
no test coverage detected