-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: organize DataFrame tests for indexing, by-method #31558
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
) | ||
@pytest.fixture(params=["default", "float_string", "mixed_float", "mixed_int"]) | ||
def where_frame(request, float_string_frame, mixed_float_frame, mixed_int_frame): | ||
if request.param == "default": |
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 future can add a doc-string (as the fixtures show this when showing the fixtures in pytest)
|
||
|
||
class TestXS: | ||
def test_xs(self, float_frame, datetime_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.
no big deal, but happy to have no classes if this is a specific test file (like you have it 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.
lgtm. some follown comments. ping on green.
ping |
thanks! |
The only change that isnt just rearrangement is implementing where_frame fixture in test_where and using it to get rid of for-loops inside a bunch of tests in that file