Skip to content

Commit 5c41d08

Browse files
committed
Refactor test files: streamline imports and enhance readability in LLM service tests and evaluation notebook
Signed-off-by: Andre Bossard <anbossar@microsoft.com>
1 parent def0e9e commit 5c41d08

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

backend/tests/test_llm_service.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@
99
from unittest.mock import AsyncMock, MagicMock, patch
1010

1111
import pytest
12-
from kba_exceptions import (
13-
LLMAuthenticationError,
14-
LLMRateLimitError,
15-
LLMTimeoutError,
16-
LLMUnavailableError,
17-
)
12+
from kba_exceptions import (LLMAuthenticationError, LLMRateLimitError,
13+
LLMTimeoutError, LLMUnavailableError)
1814
from kba_output_models import KBAOutputSchema
1915
from llm_service import LLMService, get_llm_service
2016
from pydantic import BaseModel, Field

notebooks/01_evaluation_and_tuning.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@
125125
"\n",
126126
"# Verfügbare Modelle\n",
127127
"print(\"Verfügbare Modelle:\")\n",
128-
"for m in get_available_models()[:10]:\n",
128+
"for m in get_available_models():\n",
129129
" print(f\" • {m}\")\n",
130130
"\n",
131131
"# Modell wählen (ändere den String um ein anderes zu nutzen)\n",
132-
"MODEL = \"github_copilot/gpt-5.1\"\n",
132+
"MODEL = \"lm_studio/qwen/qwen3-vl-4b\"\n",
133133
"configure_dspy(MODEL)\n",
134134
"print(f\"\\n✅ Konfiguriert: {MODEL}\")\n"
135135
]

tests/e2e/app.spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ test.describe("App shell", () => {
2929
"aria-selected",
3030
"true",
3131
);
32-
await expect(page.getByRole("heading", { name: "KBA Drafter" })).toBeVisible();
32+
await expect(
33+
page.getByRole("heading", { name: "KBA Drafter" }),
34+
).toBeVisible();
3335

3436
await page.getByTestId("tab-usecase-demo").click();
3537
await expect(page.getByTestId("tab-usecase-demo")).toHaveAttribute(

0 commit comments

Comments
 (0)