MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_display_path

Function test_display_path

tests/test_memory_command.py:209–216  ·  view source on GitHub ↗
(tmp_path, monkeypatch)

Source from the content-addressed store, hash-verified

207# C. Display-path helper
208# --------------------------------------------------------------------------- #
209def test_display_path(tmp_path, monkeypatch):
210 home = tmp_path / "h"
211 home.mkdir()
212 monkeypatch.setattr(Path, "home", classmethod(lambda cls: home))
213 cwd = tmp_path / "w"
214 cwd.mkdir()
215 assert _display_path(str(cwd / "CLAUDE.md"), str(cwd)) == "CLAUDE.md"
216 assert _display_path(str(home / "x.md"), str(cwd)) == "~/x.md"
217
218
219# --------------------------------------------------------------------------- #

Callers

nothing calls this directly

Calls 1

_display_pathFunction · 0.90

Tested by

no test coverage detected