Merging into an empty/new file.
(tmp_path)
| 48 | assert merged["a"]["e"] == 3 |
| 49 | |
| 50 | def 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 |
nothing calls this directly
no test coverage detected