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

Function test_command_with_notes

tests/test_release_notes_command.py:140–150  ·  view source on GitHub ↗
(tmp_path, monkeypatch)

Source from the content-addressed store, hash-verified

138
139
140async def test_command_with_notes(tmp_path, monkeypatch):
141 changelog = f"# Changelog\n\n## [{__version__}] - 2026-06-09\n\n- ported things\n"
142 monkeypatch.setattr(
143 "src.utils.release_notes.read_local_changelog", lambda: changelog
144 )
145 result = await RELEASE_NOTES_COMMAND.call("", _ctx(tmp_path))
146 assert result.type == "text"
147 assert result.value == (
148 f"Release notes for {__version__}:\n- ported things\n\n"
149 f"Full release page: {RELEASES_URL}/tag/v{__version__}"
150 )
151
152
153async def test_command_url_fallback_when_version_missing(tmp_path, monkeypatch):

Callers

nothing calls this directly

Calls 2

_ctxFunction · 0.70
callMethod · 0.45

Tested by

no test coverage detected