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

Function test_dotenv_path

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

Source from the content-addressed store, hash-verified

558
559@need_dotenv
560def test_dotenv_path(monkeypatch):
561 for item in ("FOO", "BAR", "EGGS"):
562 monkeypatch._setitem.append((os.environ, item, notset))
563
564 load_dotenv(test_path / ".flaskenv")
565 assert Path.cwd() == cwd
566 assert "FOO" in os.environ
567
568
569def test_dotenv_optional(monkeypatch):

Callers

nothing calls this directly

Calls 1

load_dotenvFunction · 0.90

Tested by

no test coverage detected