def test_render_markup(default_settings): markdown = "**Bold**" bbcode = "[b]Bold[/b]" no_markup = "Bold" flaskbb_config["MARKUP_TYPE"] = "markdown" assert render_markup(markdown) == "<p><strong>Bold</strong></p>\n" flaskbb_config["MARKUP_TYPE"] = "bbcode" assert render_markup(bbcode) == "<strong>Bold</strong>" flaskbb_config["MARKUP_TYPE"] = "text" assert render_markup(no_markup) == "Bold"
def test_render_markup(default_settings): markdown = "**Bold**" assert render_markup(markdown) == "<p><strong>Bold</strong></p>\n"