Skip to content

TST: split tests for windows to sub-modules #19667

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

Closed
wants to merge 34 commits into from
Closed

Conversation

giba0
Copy link
Contributor

@giba0 giba0 commented Feb 12, 2018

Splitting the test_window.py file into the test_rolling.py files, test_expanding.py
and test_ewma.py

@codecov
Copy link

codecov bot commented Feb 12, 2018

Codecov Report

Merging #19667 into master will decrease coverage by 0.21%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #19667      +/-   ##
==========================================
- Coverage   91.82%    91.6%   -0.22%     
==========================================
  Files         152      150       -2     
  Lines       49248    48864     -384     
==========================================
- Hits        45222    44763     -459     
- Misses       4026     4101      +75
Flag Coverage Δ
#multiple 89.98% <0%> (-0.24%) ⬇️
#single 41.75% <0%> (-0.15%) ⬇️
Impacted Files Coverage Δ
pandas/core/frame.py 97.22% <0%> (+0.04%) ⬆️
pandas/tseries/plotting.py 0% <0%> (-100%) ⬇️
pandas/core/dtypes/base.py 47.61% <0%> (-44.28%) ⬇️
pandas/plotting/_compat.py 62% <0%> (-28.91%) ⬇️
pandas/core/arrays/base.py 60% <0%> (-24.15%) ⬇️
pandas/io/s3.py 72.72% <0%> (-13.64%) ⬇️
pandas/core/missing.py 85.9% <0%> (-5.75%) ⬇️
pandas/plotting/_timeseries.py 60.82% <0%> (-4.49%) ⬇️
pandas/core/reshape/tile.py 90.25% <0%> (-3.12%) ⬇️
pandas/io/html.py 85.98% <0%> (-2.81%) ⬇️
... and 60 more

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 cdfce2b...8ee74d9. Read the comment docs.

@jreback
Copy link
Contributor

jreback commented Feb 13, 2018

looks like you picked up some other commits (in the parquet module), can you merge master (or revert these if you did those).

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

jreback commented Feb 13, 2018

want to parameterize some of these, but can wait for another pass for that.

@giba0
Copy link
Contributor Author

giba0 commented Feb 13, 2018

@jreback I'm a little confused, because I sent two PR's, but I did not understand why it was all together! Can you help me?

@jreback
Copy link
Contributor

jreback commented Feb 13, 2018

for a new PR checkout from master like this
git checkout -b new_branch origin/master

for now you need to rebase on master and remove those commits - like

git rebase -i origin/master

and delete the uneeded commits

@giba0
Copy link
Contributor Author

giba0 commented Feb 13, 2018

@jreback I did the suggested fix, could you check it now?

@jreback
Copy link
Contributor

jreback commented Feb 16, 2018

someting when really wrong. you need to git merge upstream/master (if upstream is the pandas-dev repo, sometimes also called origin).

only your changes should be here.

@giba0
Copy link
Contributor Author

giba0 commented Feb 17, 2018

Now I think it worked! Can you check, please?

@jreback
Copy link
Contributor

jreback commented Feb 18, 2018

you have a ton of other changes in here. you need to have just the 4 files (the original and the split off ones)

N, K = 100, 10


def assert_equal(left, right):
Copy link
Contributor

Choose a reason for hiding this comment

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

don't repeat things. 2 ways to solve this, have a common.py and import, or you can use fixtures to do this properly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this case I just need to insert @pytest.fixture?

with pytest.raises(ValueError):
c(min_periods=1, center=w)

def test_numpy_compat(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

parameterize this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you hlep me? Here I need use a decorator @pytest.mark.parametrize?

def test_constructor(self):
# GH 12669

for o in [self.series, self.frame]:
Copy link
Contributor

Choose a reason for hiding this comment

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

create a fixture for series and frame (in conftest.py)

tm.assert_frame_equal(left, right)


class Base(object):
Copy link
Contributor

Choose a reason for hiding this comment

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

see below

@jreback
Copy link
Contributor

jreback commented Feb 24, 2018

can you update

@jreback
Copy link
Contributor

jreback commented Mar 16, 2018

can you rebase / update

@jreback
Copy link
Contributor

jreback commented Jul 8, 2018

can you rebase

@jreback
Copy link
Contributor

jreback commented Jul 8, 2018

closing as stale

@jreback jreback closed this Jul 8, 2018
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.

TST: split tests for windows to sub-modules
2 participants