Skip to content

Commit e62d118

Browse files
committed
add readme test
1 parent 34f1074 commit e62d118

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/test_readme.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import pathlib
2+
3+
import exdown
4+
import pytest
5+
6+
this_dir = pathlib.Path(__file__).resolve().parent
7+
8+
9+
@pytest.mark.parametrize(
10+
"string,lineno",
11+
exdown.extract(this_dir.parent / "README.md", syntax_filter="python"),
12+
)
13+
def test_readme(string, lineno):
14+
exec(string)

0 commit comments

Comments
 (0)