Skip to content

CLN: Splits Moments and MomentsConsistency tests into separate files #34140

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 11 commits into from
May 13, 2020

Conversation

charlesdong1991
Copy link
Member

@charlesdong1991 charlesdong1991 commented May 12, 2020

Due to previous cleaning as well as the large size of those files, we could now split the Moments and MomentsConsistency test classes into two different files for rolling and ewm. And since current test_moments_expanding is actually MomentsConsistencyExpanding class, so rename it to test_moments_consistency_expanding to keep consistency.

And I think this will be the second last PR to close the original test clean issue #30486 . The next PR will be fixturizing the _create_data so that we could remove the Base entirely (which currently only creates those data). But since this base is also used in other several files like test_api.py, test_ewm.py etc in window tests, I am afraid the next PR will be quite big.

Please let me your thoughts on the plan (or if you think the change is quite big then no need to proceed since the original issue is to only clean the moments)?

cc @jreback

@jreback
Copy link
Contributor

jreback commented May 12, 2020

can you confirm the number of tests before / after is the same here?

@jreback jreback added Testing pandas testing functions or related to the test suite Window rolling, ewma, expanding labels May 12, 2020
@charlesdong1991
Copy link
Member Author

yep, it's pure copy-paste and no code is missing (also adding/removing imports)

@jreback jreback added this to the 1.1 milestone May 13, 2020
@jreback
Copy link
Contributor

jreback commented May 13, 2020

can you merge master and push again, not all checks ran.

@charlesdong1991
Copy link
Member Author

charlesdong1991 commented May 13, 2020

@jreback FYI, i quickly run through tests:

after this PR:
test_moments_ewm.py: 22
test_moments_consistency_ewm.py: 4310
Current master:
test_moments_ewm on master: 4332 

after this PR:
test_moments_rolling.py:253
test_moments_consistency_rolling.py: 10881
Current master:
test_moments_rolling.py: 11134

so i think it's all good, no test missing

@jreback
Copy link
Contributor

jreback commented May 13, 2020

looks good. let me re-run.

@jreback
Copy link
Contributor

jreback commented May 13, 2020

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@jreback jreback merged commit 9c08fe1 into pandas-dev:master May 13, 2020
@jreback
Copy link
Contributor

jreback commented May 13, 2020

thanks @charlesdong1991

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants