We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 703ca11 + de8939d commit b7a9ecdCopy full SHA for b7a9ecd
testcontainers/clickhouse.py
@@ -52,14 +52,14 @@ def __init__(
52
self.CLICKHOUSE_PASSWORD = password or self.CLICKHOUSE_PASSWORD
53
self.CLICKHOUSE_DB = dbname or self.CLICKHOUSE_DB
54
self.port_to_expose = port
55
+ self.with_exposed_ports(self.port_to_expose)
56
57
@wait_container_is_ready(Error, EOFError)
58
def _connect(self):
59
with clickhouse_driver.Client.from_url(self.get_connection_url()) as client:
60
client.execute("SELECT version()")
61
62
def _configure(self):
- self.with_exposed_ports(self.port_to_expose)
63
self.with_env("CLICKHOUSE_USER", self.CLICKHOUSE_USER)
64
self.with_env("CLICKHOUSE_PASSWORD", self.CLICKHOUSE_PASSWORD)
65
self.with_env("CLICKHOUSE_DB", self.CLICKHOUSE_DB)
0 commit comments