MCPcopy Index your code
hub / github.com/theskumar/python-dotenv / test_load_dotenv_disabled_notification

Function test_load_dotenv_disabled_notification

tests/test_main.py:431–444  ·  view source on GitHub ↗
(dotenv_path, flag_value)

Source from the content-addressed store, hash-verified

429 ],
430)
431def test_load_dotenv_disabled_notification(dotenv_path, flag_value):
432 with mock.patch.dict(
433 os.environ, {"PYTHON_DOTENV_DISABLED": flag_value}, clear=True
434 ):
435 dotenv_path.write_text("a=b")
436
437 logger = logging.getLogger("dotenv.main")
438 with mock.patch.object(logger, "debug") as mock_debug:
439 result = dotenv.load_dotenv(dotenv_path)
440
441 assert result is False
442 mock_debug.assert_called_once_with(
443 "python-dotenv: .env loading disabled by PYTHON_DOTENV_DISABLED environment variable"
444 )
445
446
447@pytest.mark.skipif(

Callers

nothing calls this directly

Calls 1

dictMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…