Skip to content

TST/CLN: use float_frame fixture to remove use of tm.getSeriesData() #26787

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

Merged
merged 1 commit into from
Jun 11, 2019

Conversation

simonjayhawkins
Copy link
Member

this PR removes 2 unnecessary fixtures from pandas\tests\groupby\conftest.py

and a few small changes to remove use of tm.getSeriesData() with a couple of exceptions:

  • conftest files: pandas\conftest.py and pandas\tests\frame\conftest.py (needed for fixtures)
  • pandas\tests\frame\common.py (this module will be removed on completion of TST/CLN: remove TestData from frame-tests; replace with fixtures #22471)
  • pandas\tests\io\json\test_pandas.py (would benefit from fixturisation and access to other frame fixtures, separate PR and then maybe have a code-checks rule for getSeriesData in test_*.py files)

@simonjayhawkins simonjayhawkins added Clean Testing pandas testing functions or related to the test suite labels Jun 11, 2019
@WillAyd WillAyd added this to the 0.25.0 milestone Jun 11, 2019
@WillAyd
Copy link
Member

WillAyd commented Jun 11, 2019

Makes sense to me

@codecov
Copy link

codecov bot commented Jun 11, 2019

Codecov Report

Merging #26787 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26787      +/-   ##
==========================================
- Coverage   91.72%   91.72%   -0.01%     
==========================================
  Files         178      178              
  Lines       50779    50779              
==========================================
- Hits        46579    46575       -4     
- Misses       4200     4204       +4
Flag Coverage Δ
#multiple 90.31% <ø> (ø) ⬆️
#single 41.18% <ø> (-0.09%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 78.94% <0%> (-10.53%) ⬇️
pandas/core/frame.py 96.88% <0%> (-0.12%) ⬇️

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 ea06f8d...a94a46e. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Jun 11, 2019

Codecov Report

Merging #26787 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26787      +/-   ##
==========================================
- Coverage   91.72%   91.72%   -0.01%     
==========================================
  Files         178      178              
  Lines       50779    50779              
==========================================
- Hits        46579    46575       -4     
- Misses       4200     4204       +4
Flag Coverage Δ
#multiple 90.31% <ø> (ø) ⬆️
#single 41.18% <ø> (-0.09%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 78.94% <0%> (-10.53%) ⬇️
pandas/core/frame.py 96.88% <0%> (-0.12%) ⬇️

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 ea06f8d...a94a46e. Read the comment docs.

@jreback jreback merged commit f0a4c43 into pandas-dev:master Jun 11, 2019
@jreback
Copy link
Contributor

jreback commented Jun 11, 2019

thanks @simonjayhawkins

@simonjayhawkins simonjayhawkins deleted the float_frame-misc branch June 12, 2019 13:59
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.

3 participants