From 04f2c5f723cae22aadf990520684495baaed99fb Mon Sep 17 00:00:00 2001 From: Mateusz Switala Date: Mon, 14 Apr 2025 16:46:59 +0200 Subject: [PATCH] improve tests descr --- tests/llm_translation/test_watsonx.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/llm_translation/test_watsonx.py b/tests/llm_translation/test_watsonx.py index b78e3ec343..5cad09f912 100644 --- a/tests/llm_translation/test_watsonx.py +++ b/tests/llm_translation/test_watsonx.py @@ -244,6 +244,8 @@ def test_watsonx_deployment(watsonx_chat_completion_call, model): assert mock_post.call_count == 1 json_data = json.loads(mock_post.call_args.kwargs["data"]) + + # nor space_id or project_id is required by wx.ai API when inferencing deployment assert "project_id" not in json_data and "space_id" not in json_data @@ -255,4 +257,6 @@ def test_watsonx_deployment_space_id_embedding(monkeypatch, watsonx_embedding_ca assert mock_post.call_count == 1 json_data = json.loads(mock_post.call_args.kwargs["data"]) - assert "space_id" not in json_data + + # nor space_id or project_id is required by wx.ai API when inferencing deployment + assert "project_id" not in json_data and "space_id" not in json_data