MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / test_load_overrides_defaults

Function test_load_overrides_defaults

tests/test_config.py:53–60  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

51
52
53def test_load_overrides_defaults(tmp_path):
54 config_path = tmp_path / "config.yaml"
55 save_config(config_path, {"model": "claude-3", "pageindex_threshold": 100})
56 loaded = load_config(config_path)
57 assert loaded["model"] == "claude-3"
58 assert loaded["pageindex_threshold"] == 100
59 # Non-overridden defaults still present
60 assert loaded["language"] == "en"
61
62
63# --- extra_headers -----------------------------------------------------------

Callers

nothing calls this directly

Calls 2

save_configFunction · 0.90
load_configFunction · 0.90

Tested by

no test coverage detected