Skip to content
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

test(backends): remove now unused supports_floating_modulus backend flag #8939

Merged
merged 3 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/contribute/05_reference.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ from ibis.backends.tests.base import BackendTest
class TestConf(BackendTest):
"""Backend-specific class with information for testing."""

supports_divide_by_zero = True
supports_floating_modulus = False
returned_timestamp_unit = "us"
supports_structs = True
supports_json = True
Expand Down
2 changes: 0 additions & 2 deletions ibis/backends/bigquery/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
class TestConf(BackendTest):
"""Backend-specific class with information for testing."""

supports_divide_by_zero = True
supports_floating_modulus = False
returned_timestamp_unit = "us"
supports_structs = True
supports_json = True
Expand Down
1 change: 0 additions & 1 deletion ibis/backends/clickhouse/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class TestConf(ServiceBackendTest):
check_dtype = False
returned_timestamp_unit = "s"
supported_to_timestamp_units = {"s"}
supports_floating_modulus = False
supports_json = False
force_sort = True
rounding_method = "half_to_even"
Expand Down
1 change: 0 additions & 1 deletion ibis/backends/datafusion/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

class TestConf(BackendTest):
# check_names = False
# supports_divide_by_zero = True
# returned_timestamp_unit = 'ns'
supports_structs = False
supports_json = False
Expand Down
2 changes: 0 additions & 2 deletions ibis/backends/exasol/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ class TestConf(ServiceBackendTest):
check_dtype = False
check_names = False
supports_arrays = False
supports_divide_by_zero = False
returned_timestamp_unit = "us"
supported_to_timestamp_units = {"s", "ms", "us"}
supports_floating_modulus = True
native_bool = True
supports_structs = False
supports_json = False
Expand Down
1 change: 0 additions & 1 deletion ibis/backends/impala/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
class TestConf(BackendTest):
supports_arrays = True
check_dtype = False
supports_divide_by_zero = True
returned_timestamp_unit = "s"
supports_structs = False
supports_json = False
Expand Down
1 change: 0 additions & 1 deletion ibis/backends/pandas/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
class TestConf(BackendTest):
check_names = False
supported_to_timestamp_units = BackendTest.supported_to_timestamp_units | {"ns"}
supports_divide_by_zero = True
returned_timestamp_unit = "ns"
stateful = False
rounding_method = "half_to_even"
Expand Down
4 changes: 0 additions & 4 deletions ibis/backends/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@ class BackendTest(abc.ABC):
"Check that column name matches when comparing Pandas Series"
supports_arrays: bool = True
"Whether backend supports Arrays / Lists"
supports_divide_by_zero: bool = False
"Whether backend supports division by zero"
returned_timestamp_unit: str = "us"
supported_to_timestamp_units = {"s", "ms", "us"}
supports_floating_modulus: bool = True
"Whether backend supports floating point in modulus operations"
native_bool: bool = True
"Whether backend has native boolean types"
supports_structs: bool = True
Expand Down
Loading