jw-python/test
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann b3a3fc0507
load_yaml: Fix dropped inplace-link siblings
A jw.inplace-link node deep-merges its sibling keys into the resolved
target.  When the target resolves to a non-dict value, the merge is
skipped and the sibling keys are silently discarded, losing document
data without any warning.

Raise ValueError when the resolved target is not a mapping and the
node carries sibling keys, and add regression tests for scalar and
list targets.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.84.2
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-08-25 19:35:02 +02:00
..
cast test: Fix MyPy errors 2026-08-12 23:10:12 +00:00
parse_opts test: Fix MyPy errors 2026-08-12 23:10:12 +00:00
trim_src test: Fix MyPy errors 2026-08-12 23:10:12 +00:00
unit load_yaml: Fix dropped inplace-link siblings 2026-08-25 19:35:02 +02:00
__init__.py stree.StringTree: Add unit tests 2026-08-12 23:10:12 +00:00
Makefile stree.StringTree: Add unit tests 2026-08-12 23:10:12 +00:00