-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add config for enabling rst #49
Comments
This is a reasonable request. Do you mainly want to use it via the pytest runner, or would you want the native runner to support this as well? |
My only interest is usage via |
Looking into this I found that you can use I think it would be good to define the desired behavior a bit more precisely, because right now I'm unsure. Are we only looking to support blocks of code that look like this:
or would we want to run all code snippets? How should we deal with something like this?
|
that is no different to >>> def func1():
>>> """
>>> Example:
>>> >>> assert func1() == 1
>>> """
>>> return 1 doctest ignores nested doctest. |
It would be helpful to have an easy way to include
*.rst
by default, without (ab)usingaddopts
.https://pypi.org/project/pytest-doctestplus/ provides this.
The text was updated successfully, but these errors were encountered: