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

Function test_load_dotquartenv

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

Source from the content-addressed store, hash-verified

111
112
113def test_load_dotquartenv(empty_cwd: Path) -> None:
114 value = "dotquartenv"
115 with open(empty_cwd / ".quartenv", "w", encoding="utf8") as env:
116 env.write(f"TEST_ENV_VAR={value}\n")
117
118 load_dotenv()
119
120 assert os.environ.pop("TEST_ENV_VAR", None) == value
121
122
123def test_load_dotenv_beats_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…