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

Method testExtensionConfigOption

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

Source from the content-addressed store, hash-verified

845 fp.write(config)
846
847 def testExtensionConfigOption(self):
848 config = {
849 'markdown.extensions.wikilinks': {
850 'base_url': 'http://example.com/',
851 'end_url': '.html',
852 'html_class': 'test',
853 },
854 'markdown.extensions.footnotes:FootnotesExtension': {
855 'PLACE_MARKER': '~~~footnotes~~~'
856 }
857 }
858 self.create_config_file(config)
859 options, logging_level = parse_options(['-c', self.tempfile])
860 self.default_options['extension_configs'] = config
861 self.assertEqual(options, self.default_options)
862
863 def textBoolExtensionConfigOption(self):
864 config = {

Callers

nothing calls this directly

Calls 2

create_config_fileMethod · 0.95
parse_optionsFunction · 0.90

Tested by

no test coverage detected