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