From d662ac36aeb5ee8c0fd738586377cb3fbe37698a Mon Sep 17 00:00:00 2001 From: Baris Can Durak Date: Fri, 29 Nov 2024 15:18:29 +0100 Subject: [PATCH] fixing the test --- tests/integration/functional/test_client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/functional/test_client.py b/tests/integration/functional/test_client.py index 9afbb3b9b1..72557777ab 100644 --- a/tests/integration/functional/test_client.py +++ b/tests/integration/functional/test_client.py @@ -1152,14 +1152,14 @@ def dummy(): artifact_name="preexisting", artifact_version="1.2.3", ) + with pytest.raises(KeyError): + clean_client.get_artifact_version("new_one") + dummy() log_metadata( metadata={"some_meta": "meta_preexisting"}, model_name="aria", model_version="model_version", ) - with pytest.raises(KeyError): - clean_client.get_artifact_version("new_one") - dummy() class TestModel: