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

Method getTempFiles

tests/test_apis.py:114–120  ·  view source on GitHub ↗

Return the file names for two temp files.

(self, src)

Source from the content-addressed store, hash-verified

112 sys.stdin, sys.stdout = self.saved
113
114 def getTempFiles(self, src):
115 """ Return the file names for two temp files. """
116 infd, infile = tempfile.mkstemp(suffix='.txt')
117 with os.fdopen(infd, 'w') as fp:
118 fp.write(src)
119 outfd, outfile = tempfile.mkstemp(suffix='.html')
120 return infile, outfile, outfd
121
122 def testFileNames(self):
123 infile, outfile, outfd = self.getTempFiles('foo')

Callers 1

testFileNamesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected