ClickHouse/dbms/tests/queries/0_stateless/helpers/httpclient.py
Vitaliy Zakaznikov 825c21f29a * Increasing timeout from 2 to 20 sec.
* Style fix
2019-06-13 06:36:59 -04:00

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