configuration de tests et de création de package
This commit is contained in:
parent
75f7a2d742
commit
d10a51757b
12 changed files with 173 additions and 19 deletions
1
tests/__init__.py
Normal file
1
tests/__init__.py
Normal file
|
@ -0,0 +1 @@
|
|||
|
10
tests/test_markdown_utils.py
Normal file
10
tests/test_markdown_utils.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from markdown_fix_freeplane.markdown_utils import replace_title_with_list
|
||||
|
||||
|
||||
def test_replace_title_with_list():
|
||||
assert (replace_title_with_list(
|
||||
'# This is a title\n# Another title') ==
|
||||
'- This is a title\n- Another title')
|
||||
assert (replace_title_with_list(
|
||||
'# This is a title\n## Another title') ==
|
||||
'- This is a title\n - Another title')
|
Loading…
Add table
Add a link
Reference in a new issue