Skip to content
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

TST: move more series tests to test_arithmetic #19794

Merged
merged 2 commits into from
Feb 21, 2018

Conversation

jbrockmendel
Copy link
Member

Doesn't overlap with other outstanding PRs.

Per usual, there is more that could be done, but we're doing this in pieces.

  • closes #xxxx
  • tests added / passed
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

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.

small comment. we have so many tests that unfortunately some of these test files are still big, but not sure can do much about this.

from pandas._libs.tslibs.period import IncompatibleFrequency

import pandas as pd
import pandas.util.testing as tm


@pytest.fixture
def tdser():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a doc-string

with pytest.raises(TypeError):
vector - tdser

# ------------------------------------------------------------------
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are nice comments / breaks, use liberally (as you are doing here, but elsewhere as well)

@jreback jreback added Testing pandas testing functions or related to the test suite Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Feb 21, 2018
@jreback jreback added this to the 0.23.0 milestone Feb 21, 2018
@jreback
Copy link
Contributor

jreback commented Feb 21, 2018

ping when pushed on comment.

@codecov
Copy link

codecov bot commented Feb 21, 2018

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #19794      +/-   ##
==========================================
+ Coverage   91.61%   91.61%   +<.01%     
==========================================
  Files         150      150              
  Lines       48887    48882       -5     
==========================================
- Hits        44786    44782       -4     
+ Misses       4101     4100       -1
Flag Coverage Δ
#multiple 89.98% <ø> (ø) ⬆️
#single 41.79% <ø> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/sparse/series.py 95.25% <0%> (-0.02%) ⬇️
pandas/core/sparse/frame.py 94.81% <0%> (ø) ⬆️
pandas/core/sparse/array.py 91.46% <0%> (+0.08%) ⬆️
pandas/core/ops.py 96.86% <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 740ad9a...4085a73. Read the comment docs.

@jbrockmendel
Copy link
Member Author

Ping

@jorisvandenbossche jorisvandenbossche changed the title move more series tests to test_arithmetic TST: move more series tests to test_arithmetic Feb 21, 2018
@jreback jreback merged commit fb28b6e into pandas-dev:master Feb 21, 2018
@jreback
Copy link
Contributor

jreback commented Feb 21, 2018

thanks!

harisbal pushed a commit to harisbal/pandas that referenced this pull request Feb 28, 2018
@jbrockmendel jbrockmendel deleted the series_tests branch June 22, 2018 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reshaping Concat, Merge/Join, Stack/Unstack, Explode 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