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

Function test_config_with_encoding

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

Source from the content-addressed store, hash-verified

143
144
145def test_config_with_encoding(tmpdir: Path) -> None:
146 path = tmpdir / ".env"
147 path.write_text("MESSAGE=Hello 世界\n", encoding="utf-8")
148 config = Config(path, encoding="utf-8")
149 assert config.get("MESSAGE") == "Hello 世界"

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
ConfigClass · 0.90

Tested by

no test coverage detected