MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / test_3950

Function test_3950

tests/test_widgets.py:323–336  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

321
322
323def test_3950():
324 path = os.path.normpath(f'{__file__}/../../tests/resources/test_3950.pdf')
325 items = list()
326 with pymupdf.open(path) as document:
327 for page in document:
328 for widget in page.widgets():
329 items.append(widget.field_label)
330 print(f'test_3950(): {widget.field_label=}.')
331 assert items == [
332 '{{ named_insured }}',
333 '{{ policy_period_start_date }}',
334 '{{ policy_period_end_date }}',
335 '{{ insurance_line }}',
336 ]
337
338
339def test_4004():

Callers

nothing calls this directly

Calls 2

widgetsMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…