MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / test_release_changelog_version

Function test_release_changelog_version

tests/test_release.py:61–72  ·  view source on GitHub ↗

In changes.txt, first item must match setup.version_p.

()

Source from the content-addressed store, hash-verified

59
60
61def 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
75def test_release_changelog_mupdf_version():

Callers

nothing calls this directly

Calls 2

_file_lineFunction · 0.85
searchMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…