Skip to content

Commit

Permalink
fix(clickhouse): add a successful test case
Browse files Browse the repository at this point in the history
  • Loading branch information
grieve54706 committed Jul 8, 2024
1 parent 9f8cbff commit 405d752
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ibis/backends/clickhouse/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from ibis.backends.clickhouse.tests.conftest import (
CLICKHOUSE_HOST,
CLICKHOUSE_PASS,
CLICKHOUSE_PORT,
CLICKHOUSE_USER,
IBIS_TEST_CLICKHOUSE_DB,
)
Expand Down Expand Up @@ -367,6 +368,12 @@ def test_password_with_bracket():
ibis.clickhouse.connect(host=host, user=user, port=port, password=quoted_pass)


def test_from_url(con):
assert ibis.connect(
f"clickhouse://{CLICKHOUSE_USER}:{CLICKHOUSE_PASS}@{CLICKHOUSE_HOST}:{CLICKHOUSE_PORT}/{IBIS_TEST_CLICKHOUSE_DB}"
)


def test_invalid_port(con):
port = 9999
url = f"clickhouse://{CLICKHOUSE_USER}:{CLICKHOUSE_PASS}@{CLICKHOUSE_HOST}:{port}/{IBIS_TEST_CLICKHOUSE_DB}"
Expand Down

0 comments on commit 405d752

Please sign in to comment.