pytest-codeblocks icon indicating copy to clipboard operation
pytest-codeblocks copied to clipboard

custom code discovery

Open d-chambers opened this issue 3 years ago • 0 comments

Hi,

I am using pytest-codeblocks to test documentation code snippets that get built with sphinx and the myst_parser. The problem I am running into is that I have to write code blocks like this to get the outuput to show up in documentation:

```{code-cell} print("mycode") ```

Is there anyway to modify pytest-codeblocks discovery logic to also test these blocks (eg assume "{code-cell}" means "python"

Thanks!

d-chambers avatar Jan 14 '22 01:01 d-chambers