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

Function test_load_dotenv_enabled_no_notification

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

Source from the content-addressed store, hash-verified

495 ],
496)
497def test_load_dotenv_enabled_no_notification(dotenv_path, flag_value):
498 with mock.patch.dict(
499 os.environ, {"PYTHON_DOTENV_DISABLED": flag_value}, clear=True
500 ):
501 dotenv_path.write_text("a=b")
502
503 logger = logging.getLogger("dotenv.main")
504 with mock.patch.object(logger, "debug") as mock_debug:
505 result = dotenv.load_dotenv(dotenv_path)
506
507 assert result is True
508 mock_debug.assert_not_called()
509
510
511@mock.patch.dict(os.environ, {}, clear=True)

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…