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

Method create_config_file

tests/test_apis.py:838–845  ·  view source on GitHub ↗

Helper to create temporary configuration files.

(self, config)

Source from the content-addressed store, hash-verified

836 self.assertEqual(options, self.default_options)
837
838 def create_config_file(self, config):
839 """ Helper to create temporary configuration files. """
840 if not isinstance(config, str):
841 # convert to string
842 config = yaml.dump(config)
843 fd, self.tempfile = tempfile.mkstemp('.yml')
844 with os.fdopen(fd, 'w') as fp:
845 fp.write(config)
846
847 def testExtensionConfigOption(self):
848 config = {

Calls

no outgoing calls

Tested by

no test coverage detected