In changes.txt, first item must match setup.version_p.
()
| 59 | |
| 60 | |
| 61 | def test_release_changelog_version(): |
| 62 | ''' |
| 63 | In changes.txt, first item must match setup.version_p. |
| 64 | ''' |
| 65 | p = f'{g_root}/changes.txt' |
| 66 | with open(p) as f: |
| 67 | text = f.read() |
| 68 | # We match `**Changes in version a.b.c**' optionally followed by ` (YYYY-MM-DD)`. |
| 69 | m = re.search(f'\n[*][*]Changes in version ([0-9.]+)[*][*]( [([0-9-]+[)])?\n', text) |
| 70 | assert m, f'Cannot parse {p}.' |
| 71 | assert m[1] == setup.version_p, \ |
| 72 | f'{_file_line(p, text, m)}: Cannot find {setup.version_p=} in first changelog item: {m[0].strip()!r}.' |
| 73 | |
| 74 | |
| 75 | def test_release_changelog_mupdf_version(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…