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

Function test_load_dotenv_enabled

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

Source from the content-addressed store, hash-verified

465 ],
466)
467def test_load_dotenv_enabled(dotenv_path, flag_value):
468 expected_environ = {"PYTHON_DOTENV_DISABLED": flag_value, "a": "b"}
469 with mock.patch.dict(
470 os.environ, {"PYTHON_DOTENV_DISABLED": flag_value}, clear=True
471 ):
472 dotenv_path.write_text("a=b")
473
474 result = dotenv.load_dotenv(dotenv_path)
475
476 assert result is True
477 assert os.environ == expected_environ
478
479
480@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…