def client(): """ init Etcd3Client, close its connection-pool when teardown """ c = Client(host, port, protocol) yield c c.close()
def client(): """ init Etcd3Client, close its connection-pool when teardown """ _, p, _ = docker_run_etcd_main() c = Client(host, p, protocol) yield c c.close()