def test_create(): client = Client(app_key, app_secret, base_url, lib=client_name) indexApp = IndexApp(client) ret = indexApp.create(index_name, 'tpl_test') print(ret) assert ret['status'] == 'OK' time.sleep(2)
def test_create(): client = Client(app_key, app_secret, base_url) indexApp = IndexApp(client) ret = yield from indexApp.create(index_name, 'tpl_test') client.session.close() assert ret['status'] == 'OK' time.sleep(5)