-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: Base class for all extension tests #19863
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
Changes from 1 commit
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import pandas.util.testing as tm | ||
|
||
|
||
class BaseExtensionTests(object): | ||
assert_series_equal = staticmethod(tm.assert_series_equal) | ||
assert_frame_equal = staticmethod(tm.assert_frame_equal) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,10 @@ | |
import pandas.util.testing as tm | ||
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. ideally we don't / shouldn't import 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. It's still used for things like |
||
from pandas.core.internals import ExtensionBlock | ||
|
||
from .base import BaseExtensionTests | ||
|
||
class BaseConstructorsTests(object): | ||
|
||
class BaseConstructorsTests(BaseExtensionTests): | ||
|
||
def test_series_constructor(self, data): | ||
result = pd.Series(data) | ||
|
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.
pandas.util.testing.assert_frame_equal -> pandas.testing.assert_frame_equal (that is the public API path)