Function
test_config_with_env_prefix
(tmpdir: Path, monkeypatch: pytest.MonkeyPatch)
Source from the content-addressed store, hash-verified
| 135 | |
| 136 | |
| 137 | def test_config_with_env_prefix(tmpdir: Path, monkeypatch: pytest.MonkeyPatch) -> None: |
| 138 | config = Config(environ={"APP_DEBUG": "value", "ENVIRONMENT": "dev"}, env_prefix="APP_") |
| 139 | assert config.get("DEBUG") == "value" |
| 140 | |
| 141 | with pytest.raises(KeyError): |
| 142 | config.get("ENVIRONMENT") |
| 143 | |
| 144 | |
| 145 | def test_config_with_encoding(tmpdir: Path) -> None: |
Callers
nothing calls this directly
Tested by
no test coverage detected