import pytest from mobilizon_reshare.formatting.description import html_to_markdown @pytest.mark.parametrize( "description, expected_output", [ ["", ""], ["
Description
", "Description"], [ "Some description abc
Bold
" "Italic
", """Some description *abc*\n\n**Bold**\n\n*Italic*\n\n\n\\> Quote\n\\> \n\\>""", ], [ "", "[Some Link](https://some_link.com)", ], ], ) def test_html_to_markdown(description, expected_output): assert html_to_markdown(description) == expected_outputQuote