mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
15 lines
327 B
Python
15 lines
327 B
Python
import os
|
|
import sys
|
|
|
|
CURDIR = os.path.dirname(os.path.realpath(__file__))
|
|
|
|
sys.path.insert(0, os.path.join(CURDIR))
|
|
|
|
import httpexpect
|
|
|
|
def client(request, name='', log=None):
|
|
client = httpexpect.spawn({'host':'localhost','port':8123}, request)
|
|
client.logger(log, prefix=name)
|
|
client.timeout(20)
|
|
return client
|