Return the unicode text read from the test snippet file having *snippet_file_name*.
(snippet_file_name: str)
| 33 | |
| 34 | |
| 35 | def 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 | |
| 46 | def testfile(name: str): |
searching dependent graphs…