-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: testing how-to use fixtures / parametrize #15608
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
Comments
+1 That would be really useful. What is the reason that it does not work within a Class? |
So we have almost all tests defined like this (was the nose style)
so this will (and is working) with pytest. But, you cannot use So we have to make these functional (e.g. independent functions), or inherit from
|
http://pandas.pydata.org/developers.html#testing needs an update too I guess |
actually that entire section should simply be a re-direct / rename to http://pandas.pydata.org/pandas-docs/stable/contributing.html that is really old text. @toobaz you can do a PR if you'd like to: https://github.com/pandas-dev/pandas-website if you'd like. |
I think might be nice to update: http://pandas-docs.github.io/pandas-docs-travis/contributing.html#writing-tests
with how to make / use fixtures and how to use parametrize. something like (and mention that we cannot do this in a
class TestClass(...)
structure)Its nice for a beginner to write this up because it will then be from there perspective :>
and running it
and lastly about using
tm.assert_series_equal
and such.The text was updated successfully, but these errors were encountered: