-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TST: Use multiple instances of parametrize instead of product in tests #21602
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
[[1. / 3, 1., 1.], | ||
[2. / 3, 1. / 3, 2. / 3], | ||
[3. / 3, 2. / 3, 1. / 3]])]) | ||
def test_rank_pct_true(method, exp): |
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 test was the only one in that was outside the class, which seemed a bit strange, so I moved it inside the class.
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.
lgtm merge on green
@@ -8,7 +8,6 @@ | |||
import numpy as np | |||
from pandas import DataFrame, Series, compat, date_range, Index, MultiIndex | |||
from pandas.util import testing as tm | |||
from pandas.compat import lrange, product | |||
|
|||
AGG_FUNCTIONS = ['sum', 'prod', 'min', 'max', 'median', 'mean', 'skew', | |||
'mad', 'std', 'var', 'sem'] |
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 should be a fixture (future PR)
73b58a2
to
35596c6
Compare
Codecov Report
@@ Coverage Diff @@
## master #21602 +/- ##
=======================================
Coverage 91.9% 91.9%
=======================================
Files 153 153
Lines 49548 49548
=======================================
Hits 45538 45538
Misses 4010 4010
Continue to review full report at Codecov.
|
product
being used inside a@pytest.mark.parametrize
have been converted to separate instances of@pytest.mark.parametrize
product
from within tests where it was straightforwardproduct
being used within tests for looping purporses