-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Fixturize tests/frame/test_constructors.py #25635
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
Fixturize tests/frame/test_constructors.py #25635
Conversation
pandas/tests/frame/conftest.py
Outdated
@@ -127,6 +127,22 @@ def timezone_frame(): | |||
return df | |||
|
|||
|
|||
@pytest.fixture | |||
def datetime_series(): |
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 add any more here
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.
not here for now
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.
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.
i don't think these fixtures useful; if you really really want them put them in the actual test file for now
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.
maybe my comments are crossing with your reading of them.
Codecov Report
@@ Coverage Diff @@
## master #25635 +/- ##
=======================================
Coverage 91.26% 91.26%
=======================================
Files 173 173
Lines 52968 52968
=======================================
Hits 48339 48339
Misses 4629 4629
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #25635 +/- ##
==========================================
+ Coverage 41.95% 91.26% +49.3%
==========================================
Files 180 173 -7
Lines 50765 52982 +2217
==========================================
+ Hits 21300 48355 +27055
+ Misses 29465 4627 -24838
Continue to review full report at Codecov.
|
@jreback PS. As noted in the other threads, this is a |
pandas/tests/frame/conftest.py
Outdated
@@ -127,6 +127,22 @@ def timezone_frame(): | |||
return df | |||
|
|||
|
|||
@pytest.fixture | |||
def datetime_series(): |
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.
not here for now
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.
I'll reiterate from another thread, that with these fixturization PRs, I will:
- keep the
TestData
"fixtures" intests.frame.conftest
- any new fixtures will stay in their respective modules
- the effort for TST/CLN: remove TestData from frame-tests; replace with fixtures #22471 is strictly translation, no breakup of tests
- [reorg of fixtures from
TestData
into submodules to happen later]
pandas/tests/frame/conftest.py
Outdated
@@ -127,6 +127,22 @@ def timezone_frame(): | |||
return df | |||
|
|||
|
|||
@pytest.fixture | |||
def datetime_series(): |
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.
Just for context, these fixtures had already been there (since #22236), and were only recently removed in #24885, even though I noted that there was an ongoing (is somewhat stalled) translation effort. Can we leave the re-org for later and not re-litigate the fixtures that we already agreed to use in #22236? |
pandas/tests/frame/conftest.py
Outdated
@@ -127,6 +127,22 @@ def timezone_frame(): | |||
return df | |||
|
|||
|
|||
@pytest.fixture | |||
def datetime_series(): |
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.
i don't think these fixtures useful; if you really really want them put them in the actual test file for now
pls merge master |
re
I agree with you, but currently |
closing as stale |
I had merged master like you asked, this PR is not stale. Please reopen. |
@jreback @gfyoung @simonjayhawkins |
Ok, merged and cleaned. Got rid of the Also: Thanks for reopening @simonjayhawkins. |
lgtm. |
thanks @h-vetinari |
One more steps towards #22471. Again, needing to re-add some fixtures that were removed in #24885.