MCPcopy Index your code
hub / github.com/github/spec-kit / test_merge_json_files_empty_existing

Function test_merge_json_files_empty_existing

tests/test_merge.py:50–57  ·  view source on GitHub ↗

Merging into an empty/new file.

(tmp_path)

Source from the content-addressed store, hash-verified

48 assert merged["a"]["e"] == 3
49
50def test_merge_json_files_empty_existing(tmp_path):
51 """Merging into an empty/new file."""
52 existing_file = tmp_path / "empty.json"
53 existing_file.write_text("{}")
54
55 new_settings = {"a": 1}
56 merged = merge_json_files(existing_file, new_settings)
57 assert merged == {"a": 1}
58
59# --- Dimension 3: Real-world Simulation ---
60

Callers

nothing calls this directly

Calls 1

merge_json_filesFunction · 0.90

Tested by

no test coverage detected