Skip to content

custom code discovery #71

Description

@d-chambers

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions