| 138 | |
| 139 | |
| 140 | async 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 | |
| 153 | async def test_command_url_fallback_when_version_missing(tmp_path, monkeypatch): |