Switch to pytest
This commit is contained in:
13
tests/test_basic.py
Normal file
13
tests/test_basic.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from markdownify import markdownify as md
|
||||
|
||||
|
||||
def test_single_tag():
|
||||
assert md('<span>Hello</span>') == 'Hello'
|
||||
|
||||
|
||||
def test_soup():
|
||||
assert md('<div><span>Hello</div></span>') == 'Hello'
|
||||
|
||||
|
||||
def test_whitespace():
|
||||
assert md(' a b \n\n c ') == ' a b c '
|
||||
Reference in New Issue
Block a user