Skip to content

Conversation

jschendel
Copy link
Member

  • All instances product being used inside a @pytest.mark.parametrize have been converted to separate instances of @pytest.mark.parametrize
  • Extracted product from within tests where it was straightforward
  • There are still multiple instances of product being used within tests for looping purporses
    • Most of the ones left do not appear to be trivial to extract
    • Some instances we might not want to remove/are clearer as-is
    • Could maybe open an issue for some of the more obvious ones?

@jschendel jschendel added Testing pandas testing functions or related to the test suite Clean labels Jun 23, 2018
@jschendel jschendel added this to the 0.24.0 milestone Jun 23, 2018
[[1. / 3, 1., 1.],
[2. / 3, 1. / 3, 2. / 3],
[3. / 3, 2. / 3, 1. / 3]])])
def test_rank_pct_true(method, exp):
Copy link
Member Author

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.

Copy link
Contributor

@jreback jreback left a 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

from pandas.compat import lrange, product

AGG_FUNCTIONS = ['sum', 'prod', 'min', 'max', 'median', 'mean', 'skew',
'mad', 'std', 'var', 'sem']
Copy link
Contributor

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)

@codecov
Copy link

codecov bot commented Jun 23, 2018

Codecov Report

Merging #21602 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #21602   +/-   ##
=======================================
  Coverage    91.9%    91.9%           
=======================================
  Files         153      153           
  Lines       49548    49548           
=======================================
  Hits        45538    45538           
  Misses       4010     4010
Flag Coverage Δ
#multiple 90.3% <ø> (ø) ⬆️
#single 41.78% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7bee353...35596c6. Read the comment docs.

@jschendel jschendel merged commit eb40557 into pandas-dev:master Jun 23, 2018
@jschendel jschendel deleted the param-misc-tests branch June 23, 2018 11:28
Sup3rGeo pushed a commit to Sup3rGeo/pandas that referenced this pull request Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Clean Testing pandas testing functions or related to the test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants