jw-python/test/unit/python
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann 2e85f3ccf8
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m5s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m30s
CI / Packaging test (pull_request) Successful in 0s
load_yaml: Support jw.include-map-no-absolute
A test that redirects production includes with jw.include-map can silently
read a real production path when the map misses a spec, making the test
depend on the host's /etc without any warning.

Add a jw.include-map-no-absolute key next to the map. When true, an
absolute include spec that matched no map entry raises ValueError, naming
the spec and the including file; an identity entry whitelists an absolute
path that may be read. The key defaults to false and applies to the whole
include tree: _load_yaml() pops it in the top-level document, rejects it
in included documents, and threads it to _parse_include_spec(), where the
check runs before the normal disk lookup.

Signed-off-by: Jan Lindemann <jan@janware.com>
Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.6.0
2026-11-20 22:39:55 +01:00
..
jw load_yaml: Support jw.include-map-no-absolute 2026-11-20 22:39:55 +01:00
Makefile stree.StringTree: Add unit tests 2026-08-12 23:10:12 +00:00