Skip to content

Commit

Permalink
test: relax the test type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Aug 25, 2024
1 parent 7213ea9 commit 2fd8f0c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ibis/tests/expr/test_selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,12 +532,15 @@ def test_methods(penguins):


def test_none_selector(penguins):
assert s.none().expand(penguins) == []
assert s.none().expand_names(penguins) == frozenset()
assert not s.none().expand(penguins)
assert not s.none().expand_names(penguins)

assert (s.none() | s.c("year")).expand_names(penguins) == frozenset(("year",))
assert list((s.none() | s.c("year")).expand_names(penguins)) == ["year"]

with pytest.raises(exc.IbisError):
penguins.select(s.none())

with pytest.raises(exc.IbisError):
penguins.select(s.none() & s.c("year"))

assert penguins.select(s.none() | s.c("year")).equals(penguins.select("year"))

0 comments on commit 2fd8f0c

Please sign in to comment.