Skip to content

Commit d0f91fc

Browse files
committed
Add initial unit test
1 parent a2f9a13 commit d0f91fc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_generation.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import hashlib
2+
3+
from lazydocs import MarkdownGenerator
4+
5+
6+
def test_import2md() -> None:
7+
generator = MarkdownGenerator()
8+
markdown = generator.import2md(MarkdownGenerator.import2md)
9+
md_hash = hashlib.md5(markdown.encode("utf-8")).hexdigest()
10+
assert md_hash == "4a2b89327414077031d103b4cf6672b6"

0 commit comments

Comments
 (0)