MCPcopy Create free account
hub / github.com/theskumar/python-dotenv / test_load_dotenv_no_file_verbose

Function test_load_dotenv_no_file_verbose

tests/test_main.py:265–272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263
264
265def 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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected