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

Method testExtensionConfigOption

tests/test_apis.py:906–920  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

904 fp.write(config)
905
906 def testExtensionConfigOption(self):
907 config = {
908 'markdown.extensions.wikilinks': {
909 'base_url': 'http://example.com/',
910 'end_url': '.html',
911 'html_class': 'test',
912 },
913 'markdown.extensions.footnotes:FootnotesExtension': {
914 'PLACE_MARKER': '~~~footnotes~~~'
915 }
916 }
917 self.create_config_file(config)
918 options, logging_level = parse_options(['-c', self.tempfile])
919 self.default_options['extension_configs'] = config
920 self.assertEqual(options, self.default_options)
921
922 def textBoolExtensionConfigOption(self):
923 config = {

Callers

nothing calls this directly

Calls 2

create_config_fileMethod · 0.95
parse_optionsFunction · 0.90

Tested by

no test coverage detected