-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
182 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,4 +102,4 @@ | |
'relations.html', # needs 'show_related': True theme option to display | ||
'searchbox.html', | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from pandas.tests.extension.conftest import * | ||
|
||
|
||
# Below fixtures are copied from pandas.conftest | ||
# They could be imported, but that would require having hypothesis as a dependency | ||
@pytest.fixture(params=[None, lambda x: x]) | ||
def sort_by_key(request): | ||
""" | ||
Simple fixture for testing keys in sorting methods. | ||
Tests None (no key) and the identity key. | ||
""" | ||
return request.param | ||
|
||
_all_arithmetic_operators = [ | ||
"__add__", | ||
"__radd__", | ||
"__sub__", | ||
"__rsub__", | ||
"__mul__", | ||
"__rmul__", | ||
"__floordiv__", | ||
"__rfloordiv__", | ||
"__truediv__", | ||
"__rtruediv__", | ||
"__pow__", | ||
"__rpow__", | ||
"__mod__", | ||
"__rmod__", | ||
] | ||
|
||
|
||
@pytest.fixture(params=_all_arithmetic_operators) | ||
def all_arithmetic_operators(request): | ||
""" | ||
Fixture for dunder names for common arithmetic operations. | ||
""" | ||
return request.param |
File renamed without changes.
Oops, something went wrong.