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

Method create_config_file

tests/test_apis.py:897–904  ·  view source on GitHub ↗

Helper to create temporary configuration files.

(self, config)

Source from the content-addressed store, hash-verified

895 self.assertEqual(options, self.default_options)
896
897 def create_config_file(self, config):
898 """ Helper to create temporary configuration files. """
899 if not isinstance(config, str):
900 # convert to string
901 config = yaml.dump(config)
902 fd, self.tempfile = tempfile.mkstemp('.yml')
903 with os.fdopen(fd, 'w') as fp:
904 fp.write(config)
905
906 def testExtensionConfigOption(self):
907 config = {

Calls

no outgoing calls

Tested by

no test coverage detected