[red-knot] mdtest should fail if you have a triple-backtick block that is unclosed #14934
Labels
help wanted
Contributions especially welcome
red-knot
Multi-file analysis & type inference
testing
Related to testing Ruff itself
If you have an mdtest like this at the end of the Markdown file, it doesn't fail:
That's because the backticks are never closed, so mdtest doesn't even recognise this as a test snippet. I keep on making this mistake locally and wondering why my tests aren't even running! It would be ideal if the framework could detect this and tell me that my test file is invalid because the backticks were never closed.
The text was updated successfully, but these errors were encountered: