import pytest from util.html import html2text @pytest.mark.parametrize( "input, expected", [ ("hello world", "hello world"), ("hello world", "hello *world*"), ("", "* foo\n* bar\n* baz"), ("
", ("-" * 80)), ('bar', "[bar](foo)"), ], ) def test_html2text(input, expected): assert html2text(input) == expected