Files
mempalace/tests
mvalentsev 3ee158ecdd test(mcp): tighten _canonicalize_kg_path normcase wiring assertion
Patch both realpath and normcase with sentinel wrappers and assert the
result composes them as normcase(realpath(p)). Swapping the order would
leave Windows symlinks under the original case, defeating the dedup.
The previous assertion (result == seen[-1].lower()) was tautological --
the fake normcase already returned p.lower(), so any implementation
that lowercased anything would pass.
2026-05-15 22:51:14 +05:00
..