(tmp_path)
| 39 | |
| 40 | |
| 41 | def test_save_load_roundtrip(tmp_path): |
| 42 | config_path = tmp_path / "config.yaml" |
| 43 | custom = {"model": "gpt-3.5-turbo", "language": "fr"} |
| 44 | save_config(config_path, custom) |
| 45 | loaded = load_config(config_path) |
| 46 | # Custom values override defaults |
| 47 | assert loaded["model"] == "gpt-3.5-turbo" |
| 48 | assert loaded["language"] == "fr" |
| 49 | # Defaults fill in missing keys |
| 50 | assert loaded["pageindex_threshold"] == DEFAULT_CONFIG["pageindex_threshold"] |
| 51 | |
| 52 | |
| 53 | def test_load_overrides_defaults(tmp_path): |
nothing calls this directly
no test coverage detected