Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: kalyan <[email protected]>
  • Loading branch information
rawwar committed Nov 9, 2023
1 parent 3b16fed commit d8479ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/ml_commons/test_model_access_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@
def client():
return ModelAccessControl(OPENSEARCH_TEST_CLIENT)


def _safe_delete_model_group(client, model_group_name):
try:
client.delete_model_group_by_name(model_group_name=model_group_name)
except NotFoundError:
pass


@pytest.fixture
def test_model_group(client):
model_group_name = "__test__model_group_1"
Expand All @@ -48,7 +50,6 @@ def test_model_group(client):
_safe_delete_model_group(client, model_group_name)



@pytest.mark.skipif(
OPENSEARCH_VERSION < MAC_MIN_VERSION,
reason="Model groups are supported in OpenSearch 2.8.0 and above",
Expand Down

0 comments on commit d8479ff

Please sign in to comment.