Skip to content

Commit 5992c57

Browse files
committed
test: add strict coverage for types
1 parent e840a1e commit 5992c57

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/python-app.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,4 @@ jobs:
4848
- name: Check types
4949
run: |
5050
mypy .
51+
mypy --strict tests/types.py

tests/types.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from markdownify import markdownify, LSTRIP, RSTRIP, STRIP
2+
3+
markdownify("<p>Hello</p>") == "Hello" # test default of STRIP
4+
markdownify("<p>Hello</p>", strip_document=LSTRIP) == "Hello\n\n"
5+
markdownify("<p>Hello</p>", strip_document=RSTRIP) == "\n\nHello"
6+
markdownify("<p>Hello</p>", strip_document=STRIP) == "Hello"
7+
markdownify("<p>Hello</p>", strip_document=None) == "\n\nHello\n\n"

0 commit comments

Comments
 (0)