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

Method testExtensionConfigOption

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

Source from the content-addressed store, hash-verified

880 fp.write(config)
881
882 def testExtensionConfigOption(self):
883 config = {
884 'markdown.extensions.wikilinks': {
885 'base_url': 'http://example.com/',
886 'end_url': '.html',
887 'html_class': 'test',
888 },
889 'markdown.extensions.footnotes:FootnotesExtension': {
890 'PLACE_MARKER': '~~~footnotes~~~'
891 }
892 }
893 self.create_config_file(config)
894 options, logging_level = parse_options(['-c', self.tempfile])
895 self.default_options['extension_configs'] = config
896 self.assertEqual(options, self.default_options)
897
898 def textBoolExtensionConfigOption(self):
899 config = {

Callers

nothing calls this directly

Calls 2

create_config_fileMethod · 0.95
parse_optionsFunction · 0.90

Tested by

no test coverage detected