Skip to content
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

allow running the plugin on rst tutorials #130

Closed
ev-br opened this issue Feb 27, 2024 · 2 comments · Fixed by #133
Closed

allow running the plugin on rst tutorials #130

ev-br opened this issue Feb 27, 2024 · 2 comments · Fixed by #133
Labels
bug Something isn't working feature-parity refguide-check features

Comments

@ev-br
Copy link
Member

ev-br commented Feb 27, 2024

Currently, $ pytest --doctest-modules --collect only docs/source/tutorial reports 0 items collected but pop up a bunch of MPL figures. So, something pytest-y or doctest-y sneaks in, imports and runs examples.
A breakpoint in a Runner.run does not get hit --- makes sense if 0 items are collected.
A breakpoint in DTTextfile.collect does not get hit either.

@ev-br ev-br added bug Something isn't working feature-parity refguide-check features labels Feb 27, 2024
@ev-br
Copy link
Member Author

ev-br commented Feb 28, 2024

MPL figures are.py files in the examples/ folder. They (at least some of them) get included into code-blocks in rst, so need the folder needs to be excluded

@ev-br
Copy link
Member Author

ev-br commented Feb 28, 2024

Further hiccup: $ pytest doc/source/tutorials --doctest-modules does not find the conftest.py --- the conftest.py lives in scipy/scipy and the docs are in scipy/docs/tutorial. We thus only get a default DTConfig instance from scpdt itself.

EDIT: seems to be solved by adding a conftest.py to doc/source/tutorial ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature-parity refguide-check features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant