From f875e50f80e189e796b8d7a6e234306e8b657cf3 Mon Sep 17 00:00:00 2001 From: kalyan Date: Fri, 1 Dec 2023 13:56:04 +0530 Subject: [PATCH] lint fix Signed-off-by: kalyan --- opensearch_py_ml/ml_commons/ml_commons_client.py | 2 +- opensearch_py_ml/ml_commons/model_connector.py | 1 - tests/ml_commons/test_model_connector.py | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opensearch_py_ml/ml_commons/ml_commons_client.py b/opensearch_py_ml/ml_commons/ml_commons_client.py index 938c997fa..2fde29294 100644 --- a/opensearch_py_ml/ml_commons/ml_commons_client.py +++ b/opensearch_py_ml/ml_commons/ml_commons_client.py @@ -13,7 +13,6 @@ from deprecated.sphinx import deprecated from opensearchpy import OpenSearch -from opensearch_py_ml.ml_commons.model_connector import Connector from opensearch_py_ml.ml_commons.ml_common_utils import ( ML_BASE_URI, MODEL_FORMAT_FIELD, @@ -23,6 +22,7 @@ TIMEOUT, ) from opensearch_py_ml.ml_commons.model_access_control import ModelAccessControl +from opensearch_py_ml.ml_commons.model_connector import Connector from opensearch_py_ml.ml_commons.model_execute import ModelExecute from opensearch_py_ml.ml_commons.model_uploader import ModelUploader diff --git a/opensearch_py_ml/ml_commons/model_connector.py b/opensearch_py_ml/ml_commons/model_connector.py index 277f7d76b..d06ce196f 100644 --- a/opensearch_py_ml/ml_commons/model_connector.py +++ b/opensearch_py_ml/ml_commons/model_connector.py @@ -22,7 +22,6 @@ def create_standalone_connector(self, payload: dict): method="POST", url=f"{ML_BASE_URI}/connectors/_create", body=payload ) - def list_connectors(self): search_query = {"query": {"match_all": {}}} return self.search_connectors(search_query) diff --git a/tests/ml_commons/test_model_connector.py b/tests/ml_commons/test_model_connector.py index b1bbda707..6e4849201 100644 --- a/tests/ml_commons/test_model_connector.py +++ b/tests/ml_commons/test_model_connector.py @@ -17,6 +17,7 @@ OPENSEARCH_VERSION = parse_version(os.environ.get("OPENSEARCH_VERSION", "2.11.0")) CONNECTOR_MIN_VERSION = parse_version("2.9.0") + @pytest.fixture def client(): return Connector(OPENSEARCH_TEST_CLIENT)