Skip to content

Commit

Permalink
test(ir): test_custom_table_expr should not depend on the pandas backend
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed Aug 13, 2023
1 parent 621bdac commit 90e852d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ibis/expr/operations/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,11 @@ def test_custom_table_expr():
class MyTable(ir.Table):
pass

class SpecialTable(ops.DatabaseTable):
class SpecialTable(ops.UnboundTable):
def to_expr(self):
return MyTable(self)

con = ibis.pandas.connect({})
node = SpecialTable("foo", ibis.schema([("a", "int64")]), con)
node = SpecialTable(name="foo", schema=ibis.schema([("a", "int64")]))
expr = node.to_expr()
assert isinstance(expr, MyTable)

Expand Down

0 comments on commit 90e852d

Please sign in to comment.