-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
CLN: tests/extension/json/test_json.py typefix #28994
Changes from 12 commits
a19c844
28b7120
008fe48
217adc8
ea903c9
8e8daed
524ce17
c642ade
b70688f
acf78f9
6636d8e
88ef8dd
cfd604c
d1928e9
1549313
a7fcf3f
d5856b8
2da8bad
0309fe8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,18 @@ | |
|
||
|
||
class BaseExtensionTests: | ||
@staticmethod | ||
def assert_equal(left, right, **kwargs): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AFAICT it's only |
||
return tm.assert_equal(left, right, **kwargs) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. don't need the return |
||
|
||
assert_equal = staticmethod(tm.assert_equal) | ||
assert_series_equal = staticmethod(tm.assert_series_equal) | ||
assert_frame_equal = staticmethod(tm.assert_frame_equal) | ||
assert_extension_array_equal = staticmethod(tm.assert_extension_array_equal) | ||
@staticmethod | ||
def assert_series_equal(left, right, **kwargs): | ||
return tm.assert_series_equal(left, right, **kwargs) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
|
||
@staticmethod | ||
def assert_frame_equal(left, right, **kwargs): | ||
return tm.assert_frame_equal(left, right, **kwargs) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
|
||
@staticmethod | ||
def assert_extension_array_equal(left, right, **kwargs): | ||
return tm.assert_extension_array_equal(left, right, **kwargs) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
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 get rid of these methods altogether and just import / use as function within tests?
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 so, since some tests need to override these
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.
Hmm OK - so was this change required? Looks like using
tm.assert_*
in the tests now?