MCPcopy Create free account
hub / github.com/pallets/flask / test_dotenv_optional

Function test_dotenv_optional

tests/test_cli.py:569–573  ·  view source on GitHub ↗
(monkeypatch)

Source from the content-addressed store, hash-verified

567
568
569def test_dotenv_optional(monkeypatch):
570 monkeypatch.setitem(sys.modules, "dotenv", None)
571 monkeypatch.chdir(test_path)
572 load_dotenv()
573 assert "FOO" not in os.environ
574
575
576@need_dotenv

Callers

nothing calls this directly

Calls 1

load_dotenvFunction · 0.90

Tested by

no test coverage detected