fix hr tests

This commit is contained in:
AlexVonB
2021-05-02 10:45:52 +02:00
parent 5f102d5223
commit 55fb96e3c0

View File

@@ -229,7 +229,9 @@ def test_hn_nested_img():
def test_hr():
assert md('<hr>hr</hr>') == 'hr'
assert md('Hello<hr>World') == 'Hello\n\n---\n\nWorld'
assert md('Hello<hr />World') == 'Hello\n\n---\n\nWorld'
assert md('<p>Hello</p>\n<hr>\n<p>World</p>') == 'Hello\n\n\n\n\n---\n\n\nWorld\n\n'
def test_head():
@@ -307,7 +309,3 @@ def test_strong_em_symbol():
def test_newline_style():
assert md('a<br />b<br />c', newline_style=BACKSLASH) == 'a\\\nb\\\nc'
def test_hr():
assert md('Hello<hr />World') == 'Hello\n\n---\n\nWorld'