From ca264404f9ce212a401c31c4854682655b0112a9 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Mon, 30 Oct 2023 11:44:01 +0400 Subject: [PATCH] Stop trying getting local client --- test_elasticsearch/test_server/__init__.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/test_elasticsearch/test_server/__init__.py b/test_elasticsearch/test_server/__init__.py index c9ac5ad561..e31a1c179c 100644 --- a/test_elasticsearch/test_server/__init__.py +++ b/test_elasticsearch/test_server/__init__.py @@ -30,18 +30,11 @@ def get_client(**kwargs): if client is not None and not kwargs: return client - # try and locate manual override in the local environment try: - from test_elasticsearch.local import get_client as local_get_client - - new_client = local_get_client(**kwargs) - except ImportError: - # fallback to using vanilla client - try: - new_client = test.get_test_client(**kwargs) - except SkipTest: - client = False - raise + new_client = test.get_test_client(**kwargs) + except SkipTest: + client = False + raise if not kwargs: client = new_client