-
Notifications
You must be signed in to change notification settings - Fork 39
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
Inlcude docstring of make_napari_viewer
in testing.md
#378
Conversation
make_napari_viewer
in testing.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few small nitpicks, but otherwise I like it.
> note: fixtures in pytest can be a little mysterious, since it's not always | ||
> clear where they are coming from. In this case, using a pytest-qt fixture | ||
> looks like this: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we make this a proper admonition? It kinda looks like a code block.
I think this is actually pretty important, especially when learning, so a proper admonition would make it stand out more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and in the admonition i'd put the python module name pytest-qt in backticks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do and I've added that pytest-qt is a napari testing dependency.
I think that we should more promote |
Thanks @psobolewskiPhD , changes made! @Czaki so this testing section is aimed at napari developers, there is a separate section on testing for plugin developers. Are you recommending I will make another PR to add cross references to other testing sections. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for your patience!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! Since this is for internal tests I don't think we should change this to use the viewer
proxy.
I think the spacing/padding/margin -- if I am understanding correctly -- is fixed in the theme: |
@psobolewskiPhD in that case I am happy to remove the empty line? I did notice there are other places with similar situation, so we may as well be consistent with what is happening already. |
❤️ |
# References and relevant issues Follow on from #378 Depends on #325 # Description Add cross reference to other testing info in `testing.md` (waiting on #325 so I can add cross ref label) --------- Co-authored-by: Peter Sobolewski <[email protected]>
References and relevant issues
Towards #150
Depends on napari/napari#6774
Description
Use
autofunction
to include docstring ofmake_napari_viewer