(tmp_path, monkeypatch)
| 207 | # C. Display-path helper |
| 208 | # --------------------------------------------------------------------------- # |
| 209 | def 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 | # --------------------------------------------------------------------------- # |
nothing calls this directly
no test coverage detected