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

Function snippet_text

tests/unitutil/file.py:35–43  ·  view source on GitHub ↗

Return the unicode text read from the test snippet file having *snippet_file_name*.

(snippet_file_name: str)

Source from the content-addressed store, hash-verified

33
34
35def snippet_text(snippet_file_name: str):
36 """
37 Return the unicode text read from the test snippet file having
38 *snippet_file_name*.
39 """
40 snippet_file_path = os.path.join(test_file_dir, "snippets", "%s.txt" % snippet_file_name)
41 with open(snippet_file_path, "rb") as f:
42 snippet_bytes = f.read()
43 return snippet_bytes.decode("utf-8")
44
45
46def testfile(name: str):

Calls 1

readMethod · 0.80

Used in the wild real call sites across dependent graphs

searching dependent graphs…