-
-
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
Remove TestData from series-tests test_api.py #29153
Remove TestData from series-tests test_api.py #29153
Conversation
* Replaced TestData usage in pandas/tests/series/test_api.py with fixtures
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.
@SaturnFromTitan thanks for the PR.
can you split the tests where the two fixtures are tested independently
…ries simultaniously
509e116
to
b85a985
Compare
|
||
# assert is lazy (genrators don't define reverse, lists do) | ||
assert not hasattr(self.series.items(), "reverse") | ||
assert not hasattr(string_series.items(), "reverse") |
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 don't get why this is part of the test, but I left it as it was there before. Currently, it's only part of the string_series tests for .items
and .iteritems
, but not for the datetime_series ones (same as it was before).
@simonjayhawkins What's your take on removing it vs leaving as is?
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 think fine to leave as is.
Thanks @SaturnFromTitan very nice cleanup |
Part of #22550
pandas/tests/series/test_api.py
with fixturesblack pandas
git diff upstream/master -u -- "*.py" | flake8 --diff