-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tests): reorganize operation related tests from `ibis.tests.…
…exprs` to `ibis.expr.operations.tests`
- Loading branch information
Showing
5 changed files
with
42 additions
and
116 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from __future__ import annotations | ||
|
||
import sys | ||
|
||
collect_ignore = [] | ||
if sys.version_info < (3, 10): | ||
collect_ignore.append("test_core_py310.py") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from __future__ import annotations | ||
|
||
import ibis | ||
import ibis.expr.datatypes as dt | ||
import ibis.expr.operations as ops | ||
|
||
|
||
def test_sortkey_propagates_dtype_and_shape(): | ||
k = ops.SortKey(ibis.literal(1), ascending=True) | ||
assert k.dtype == dt.int8 | ||
assert k.shape.is_scalar() | ||
|
||
t = ibis.table([("a", "int16")], name="t") | ||
k = ops.SortKey(t.a, ascending=True) | ||
assert k.dtype == dt.int16 | ||
assert k.shape.is_columnar() |
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