MCPcopy Create free account
hub / github.com/pallets/quart / test_load_dotenv

Function test_load_dotenv

tests/test_cli.py:103–110  ·  view source on GitHub ↗
(empty_cwd: Path)

Source from the content-addressed store, hash-verified

101
102
103def test_load_dotenv(empty_cwd: Path) -> None:
104 value = "dotenv"
105 with open(empty_cwd / ".env", "w", encoding="utf8") as env:
106 env.write(f"TEST_ENV_VAR={value}\n")
107
108 load_dotenv()
109
110 assert os.environ.pop("TEST_ENV_VAR", None) == value
111
112
113def test_load_dotquartenv(empty_cwd: Path) -> None:

Callers

nothing calls this directly

Calls 2

load_dotenvFunction · 0.90
popMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…