Skip to content

Commit 4a8ea29

Browse files
committed
Implement ArithmeticOps tests
1 parent fe6e3be commit 4a8ea29

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

pandas/tests/extension/list/test_list.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class TestListArray(
7676
BaseParsingTests,
7777
# BaseMethodsTests,
7878
BaseMissingTests,
79-
# BaseArithmeticOpsTests,
79+
BaseArithmeticOpsTests,
8080
# BaseComparisonOpsTests,
8181
# BaseUnaryOpsTests,
8282
BasePrintingTests,
@@ -121,6 +121,27 @@ def test_array_interface(self, data):
121121
def test_EA_types(self, engine, data, request):
122122
pytest.skip(reason="ListArray has not implemented parsing from string")
123123

124+
def test_arith_series_with_scalar(self, data, all_arithmetic_operators):
125+
if all_arithmetic_operators in ("__mod__", "__rmod__"):
126+
pytest.skip("ListArray does not implement __mod__ or __rmod__")
127+
128+
super().test_arith_series_with_scalar(data, all_arithmetic_operators)
129+
130+
def test_arith_series_with_array(self, data, all_arithmetic_operators, request):
131+
if all_arithmetic_operators in ("__mod__", "__rmod__"):
132+
pytest.skip("ListArray does not implement __mod__ or __rmod__")
133+
134+
super().test_arith_series_with_array(data, all_arithmetic_operators)
135+
136+
def test_arith_frame_with_scalar(self, data, all_arithmetic_operators):
137+
if all_arithmetic_operators in ("__mod__", "__rmod__"):
138+
pytest.skip("ListArray does not implement __mod__ or __rmod__")
139+
140+
super().test_arith_frame_with_scalar(data, all_arithmetic_operators)
141+
142+
def test_divmod(self, data):
143+
pytest.skip("ListArray does not implement divmod")
144+
124145

125146
def test_to_csv(data):
126147
# https://github.com/pandas-dev/pandas/issues/28840

0 commit comments

Comments
 (0)