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

Method create_config_file

tests/test_apis.py:873–880  ·  view source on GitHub ↗

Helper to create temporary configuration files.

(self, config)

Source from the content-addressed store, hash-verified

871 self.assertEqual(options, self.default_options)
872
873 def create_config_file(self, config):
874 """ Helper to create temporary configuration files. """
875 if not isinstance(config, str):
876 # convert to string
877 config = yaml.dump(config)
878 fd, self.tempfile = tempfile.mkstemp('.yml')
879 with os.fdopen(fd, 'w') as fp:
880 fp.write(config)
881
882 def testExtensionConfigOption(self):
883 config = {

Calls

no outgoing calls

Tested by

no test coverage detected