Skip to content

Commit e2deb6a

Browse files
committed
🔧: configure Sybil for tests
Signed-off-by: Nathaniel Starkman <nstarman@users.noreply.github.com>
1 parent fe4a20c commit e2deb6a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎conftest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from sybil import Sybil
2+
from sybil.parsers.doctest import DocTestParser
3+
4+
readme_tester = Sybil(
5+
parsers=[DocTestParser()],
6+
pattern="README.md",
7+
)
8+
9+
python_file_tester = Sybil(
10+
parsers=[DocTestParser()],
11+
pattern="src/**/*.py",
12+
)
13+
14+
pytest_collect_file = (readme_tester + python_file_tester).pytest()

0 commit comments

Comments
 (0)