-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
DOC: Demo incorporating pytest into test classes #15989
Conversation
9408578
to
90c2fbc
Compare
doc/source/contributing.rst
Outdated
@@ -701,6 +701,18 @@ Tests that we have ``parametrized`` are now accessible via the test name, for ex | |||
test_cool_feature.py::test_dtypes[int8] PASSED | |||
test_cool_feature.py::test_series[int8] PASSED | |||
|
|||
Sometimes, it does make sense to bundle test functions together into a single class, either because the test file is testing multiple functions from a single module, and |
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.
can you make this a ::note
?
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.
actually, let's split this out to a section after 'Writing Tests' and before 'Parametrize' (you may want to move some prose from Parametrize that is related to this as well).
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.
Sure thing. Done.
nice picture! |
The original photo showed the CI GitHub UI for an owner of the repository, which is not representative of what most contributors will see.
90c2fbc
to
6504c2d
Compare
6504c2d
to
b0c656e
Compare
@jreback All comments addressed. Ready to merge if nothing else. |
thanks! |
Title is self-explanatory. Also changes CI GitHub UI photo to illustrate what most users (who are non-owners) will see (i.e. no "squash and merge").
#15987 (comment)