-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF/TST: Add more pytest idiom to resample/test_base.py #24377
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
Conversation
Hello @simonjayhawkins! Thanks for updating the PR. Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated on December 23, 2018 at 19:07 Hours UTC |
Codecov Report
@@ Coverage Diff @@
## master #24377 +/- ##
=======================================
Coverage 92.29% 92.29%
=======================================
Files 162 162
Lines 51841 51841
=======================================
Hits 47847 47847
Misses 3994 3994
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #24377 +/- ##
==========================================
- Coverage 92.3% 92.3% -0.01%
==========================================
Files 162 163 +1
Lines 51875 51947 +72
==========================================
+ Hits 47883 47949 +66
- Misses 3992 3998 +6
Continue to review full report at Codecov.
|
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.
need to look some more
pandas/tests/resample/test_base.py
Outdated
|
||
|
||
@pytest.mark.parametrize( | ||
'_index_factory,_series_name,_index_start,_index_end', |
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 is slightly magical
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.
looks good. on master we have 499 tests and 139 skipped, here 497 ad 9 skipped. so I think a couple got removed?
@@ -19,6 +17,22 @@ | |||
assert_almost_equal, assert_frame_equal, assert_index_equal, | |||
assert_series_equal) | |||
|
|||
# tuples of '_index_factory,_series_name,_index_start,_index_end' |
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 give a little more expl here on what this actuall does
for
similarly for
and the same for but because
so that account for 128 of the 130 reduction in skipped tests. the other two are from the overridden tests... pandas/pandas/tests/resample/test_base.py Lines 231 to 237 in 1cd077a
the number of passed tests is reduced by two since pandas/pandas/tests/resample/test_base.py Lines 71 to 74 in 1cd077a
|
|
thanks @simonjayhawkins |
git diff upstream/master -u -- "*.py" | flake8 --diff
in this pass:
cc @jreback