Skip to content

Commit

Permalink
test(backends): copy from_connection to new file
Browse files Browse the repository at this point in the history
  • Loading branch information
deepyaman committed Jul 18, 2024
1 parent 1733177 commit 79db1fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ibis/backends/tests/test_dbapi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from __future__ import annotations

CON_ATTR = {"flink": "_table_env"}
DEFAULT_CON_ATTR = "con"


def test_from_connection(con):
new_con = type(con).from_connection(getattr(con, CON_ATTR.get(con.name, "con")))
assert {"astronauts", "batting", "diamonds"} <= set(new_con.list_tables())

0 comments on commit 79db1fe

Please sign in to comment.