Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed Oct 24, 2024
1 parent 2e04da8 commit 4d1670c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/llm/test_llm_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ def test_llm_connection_test_success(mock_llm):
"""Test successful LLM connection."""
assert llm_connection_test("some_model") is None

mock_llm.assert_called_once_with("some_model", base_url=None, api_key=None)
mock_llm.assert_called_once_with(
"some_model", base_url=None, api_key=None, load_tools=False
)


@patch("alphastats.gui.utils.llm_helper.LLMIntegration")
Expand All @@ -129,4 +131,6 @@ def test_llm_connection_test_failure(mock_llm, mock_streamlit):

assert llm_connection_test("some_model") == "API Error"

mock_llm.assert_called_once_with("some_model", base_url=None, api_key=None)
mock_llm.assert_called_once_with(
"some_model", base_url=None, api_key=None, load_tools=False
)

0 comments on commit 4d1670c

Please sign in to comment.