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

Function test_load_dotenv_disabled

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

Source from the content-addressed store, hash-verified

400 ],
401)
402def test_load_dotenv_disabled(dotenv_path, flag_value):
403 expected_environ = {"PYTHON_DOTENV_DISABLED": flag_value}
404 with mock.patch.dict(
405 os.environ, {"PYTHON_DOTENV_DISABLED": flag_value}, clear=True
406 ):
407 dotenv_path.write_text("a=b")
408
409 result = dotenv.load_dotenv(dotenv_path)
410
411 assert result is False
412 assert os.environ == expected_environ
413
414
415@pytest.mark.parametrize(

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…