(tmpdir: Path)
| 143 | |
| 144 | |
| 145 | def 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 世界" |