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

Function test_release_changelog_mupdf_version

tests/test_release.py:75–85  ·  view source on GitHub ↗

In changes.txt, first mentioned of MuPDF must match setup.version_mupdf.

()

Source from the content-addressed store, hash-verified

73
74
75def test_release_changelog_mupdf_version():
76 '''
77 In changes.txt, first mentioned of MuPDF must match setup.version_mupdf.
78 '''
79 p = f'{g_root}/changes.txt'
80 with open(p) as f:
81 text = f.read()
82 m = re.search(f'\n[*] Use MuPDF-([0-9.]+)[.]\n', text)
83 assert m, f'Cannot parse {p}.'
84 assert m[1] == setup.version_mupdf, \
85 f'{_file_line(p, text, m)}: First mentioned MuPDF version does not match {setup.version_mupdf=}: {m[0].strip()!r}.'

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…