configuration de tests et de création de package

This commit is contained in:
François Pelletier 2024-01-08 12:42:03 -05:00
parent 75f7a2d742
commit d10a51757b
12 changed files with 173 additions and 19 deletions

1
tests/__init__.py Normal file
View file

@ -0,0 +1 @@

View 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')