Skip to content

Commit

Permalink
increase test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: kalyan <[email protected]>
  • Loading branch information
rawwar committed Dec 1, 2023
1 parent 055145d commit 2b8ac5c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/ml_commons/test_model_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ def test_search_connectors(client, test_connector):
except Exception as ex:
assert False, f"Failed to search connectors due to {ex}"

with pytest.raises(ValueError):
client.search_connectors("test")


@pytest.mark.skipif(
OPENSEARCH_VERSION < CONNECTOR_MIN_VERSION,
Expand Down Expand Up @@ -150,3 +153,6 @@ def test_delete_connector(client, test_connector):
assert res["result"] == "not_found"
except Exception as ex:
assert False, f"Failed to delete connector due to {ex}"

with pytest.raises(ValueError):
client.delete_connector(connector_id={"test": "fail"})

0 comments on commit 2b8ac5c

Please sign in to comment.