-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
Conversation
This reverts commit bf59983.
…ing.py, and test_ewma.py
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
looks like you picked up some other commits (in the parquet module), can you merge master (or revert these if you did those). |
want to parameterize some of these, but can wait for another pass for that. |
@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? |
for a new PR checkout from master like this for now you need to rebase on master and remove those commits - like git rebase -i origin/master and delete the uneeded commits |
@jreback I did the suggested fix, could you check it now? |
someting when really wrong. you need to only your changes should be here. |
Now I think it worked! Can you check, please? |
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): |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parameterize this
There was a problem hiding this comment.
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]: |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see below
can you update |
can you rebase / update |
can you rebase |
closing as stale |
Splitting the test_window.py file into the test_rolling.py files, test_expanding.py
and test_ewma.py
git diff upstream/master -u -- "*.py" | flake8 --diff