From 438593cd2eb26cd5d587942800df010cc156ba51 Mon Sep 17 00:00:00 2001 From: "Daniel (dB.) Doubrovkine" Date: Sun, 12 Nov 2023 11:35:06 -0500 Subject: [PATCH] Remove support for local client in testing. (#573) Signed-off-by: dblock Signed-off-by: roma2023 --- test_opensearchpy/test_server/__init__.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/test_opensearchpy/test_server/__init__.py b/test_opensearchpy/test_server/__init__.py index f6856bc0..650991ca 100644 --- a/test_opensearchpy/test_server/__init__.py +++ b/test_opensearchpy/test_server/__init__.py @@ -32,7 +32,7 @@ from opensearchpy.helpers import test from opensearchpy.helpers.test import OpenSearchTestCase as BaseTestCase -client = None +client: Any = None def get_client(**kwargs: Any) -> Any: @@ -42,18 +42,11 @@ def get_client(**kwargs: Any) -> Any: if client is not None and not kwargs: return client - # try and locate manual override in the local environment try: - from test_opensearchpy.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