MCPcopy Create free account
hub / github.com/scanny/python-pptx / testfile_bytes

Function testfile_bytes

tests/unitutil/file.py:53–57  ·  view source on GitHub ↗

Return bytes of file at path formed by adding `segments` to test file dir.

(*segments: str)

Source from the content-addressed store, hash-verified

51
52
53def testfile_bytes(*segments: str):
54 """Return bytes of file at path formed by adding `segments` to test file dir."""
55 path = os.path.join(test_file_dir, *segments)
56 with open(path, "rb") as f:
57 return f.read()

Callers 1

content_type_mapMethod · 0.85

Calls 1

readMethod · 0.80

Tested by 1

content_type_mapMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…