modal-labs / pytest-markdown-docs

Run pytest on markdown code fence blocks
MIT License
57 stars 7 forks source link

Bugfix: Make sure we test some failure states #21

Closed freider closed 9 months ago

freider commented 9 months ago

Tests would previously pass silently for syntax errors. This adds plugin tests to check that both assertions and syntax errors lead to failed tests.

Also cleans up some unneccessary """ sequences in artificial markdown docs created during tests