File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
clickhouse/testcontainers/clickhouse Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,11 @@ class ClickHouseContainer(DbContainer):
4141 [('working',)]
4242
4343 >>> import clickhouse_connect
44- >>> with ClickHouseContainer("clickhouse/clickhouse-server:21.8", port=8123) as clickhouse:
45- ... client = clickhouse_connect.get_client(dsn=self.get_connection_url())
44+ >>> with ClickHouseContainer("clickhouse/clickhouse-server:21.8",
45+ ... port=8123) as clickhouse:
46+ ... client = clickhouse_connect.get_client(dsn=clickhouse.get_connection_url())
4647 ... client.command("select 'working'")
47- [( 'working',)]
48+ 'working'
4849 """
4950
5051 CLICKHOUSE_USER = os .environ .get ("CLICKHOUSE_USER" , "test" )
@@ -76,7 +77,6 @@ def _connect(self) -> None:
7677 with clickhouse_driver .Client .from_url (self .get_connection_url ()) as client :
7778 client .execute ("SELECT version()" )
7879
79-
8080 def _configure (self ) -> None :
8181 self .with_env ("CLICKHOUSE_USER" , self .CLICKHOUSE_USER )
8282 self .with_env ("CLICKHOUSE_PASSWORD" , self .CLICKHOUSE_PASSWORD )
You can’t perform that action at this time.
0 commit comments