MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / getTempFiles

Method getTempFiles

tests/test_apis.py:90–96  ·  view source on GitHub ↗

Return the file names for two temp files.

(self, src)

Source from the content-addressed store, hash-verified

88 sys.stdin, sys.stdout = self.saved
89
90 def getTempFiles(self, src):
91 """ Return the file names for two temp files. """
92 infd, infile = tempfile.mkstemp(suffix='.txt')
93 with os.fdopen(infd, 'w') as fp:
94 fp.write(src)
95 outfd, outfile = tempfile.mkstemp(suffix='.html')
96 return infile, outfile, outfd
97
98 def testFileNames(self):
99 infile, outfile, outfd = self.getTempFiles('foo')

Callers 1

testFileNamesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected