MCPcopy
hub / github.com/encode/starlette / test_missing_env_file_raises

Function test_missing_env_file_raises

tests/test_config.py:105–109  ·  view source on GitHub ↗
(tmpdir: Path)

Source from the content-addressed store, hash-verified

103
104
105def test_missing_env_file_raises(tmpdir: Path) -> None:
106 path = os.path.join(tmpdir, ".env")
107
108 with pytest.warns(UserWarning, match=f"Config file '{path}' not found."):
109 Config(path)
110
111
112def test_environ() -> None:

Callers

nothing calls this directly

Calls 1

ConfigClass · 0.90

Tested by

no test coverage detected