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

Function test_4050

tests/test_embeddedfiles.py:26–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 assert doc.embfile_count() == 0
25
26def test_4050():
27 with pymupdf.open() as document:
28 document.embfile_add('test', b'foobar', desc='some text')
29 d = document.embfile_info('test')
30 print(f'{d=}')
31 # Date is non-trivial to test for.
32 del d['creationDate']
33 del d['modDate']
34 assert d == {
35 'name': 'test',
36 'collection': 0,
37 'filename': 'test',
38 'ufilename': 'test',
39 'description': 'some text',
40 'size': 6,
41 'length': 6,
42 }
43

Callers

nothing calls this directly

Calls 2

embfile_addMethod · 0.80
embfile_infoMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…