Skip to content

Commit 20576bb

Browse files
coverage
1 parent 331157d commit 20576bb

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

src/tests/api/agents/test_agent_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ async def test_delete_instance_handles_missing_thread_cache(
116116
async def test_delete_instance_does_nothing_if_none(mock_azure_agent):
117117
AgentFactory._instance = None
118118
await AgentFactory.delete_instance()
119-
# No assertion needed — test passes if nothing throws
119+

src/tests/api/api/test_api_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from fastapi import FastAPI
55
from fastapi.testclient import TestClient
66

7-
from api import api_routes # assuming your router is defined here
7+
from api import api_routes
88

99
@pytest.fixture
1010
def create_test_client():

src/tests/api/api/test_history_routes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ async def test_update_conversation_missing_id(mock_update, mock_auth, client, he
6161
mock_auth.return_value = mock_user
6262
res = await client.post(
6363
"/update",
64-
json={}, # no conversation_id
64+
json={},
6565
headers={**headers, "Content-Type": "application/json"}
6666
)
67-
# Since the route handler swallows HTTPException and returns 500
67+
6868
assert res.status_code == 500
6969
assert res.json()["error"] == "An internal error has occurred!"
7070
mock_update.assert_not_awaited()

src/tests/api/auth/test_auth_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_get_authenticated_user_details_dev_mode(self, mock_sample_user):
1818
"x-ms-client-principal": "encodedstring"
1919
}
2020

21-
request_headers = {} # Missing auth header to simulate dev mode
21+
request_headers = {}
2222
result = auth_utils.get_authenticated_user_details(request_headers)
2323

2424
self.assertEqual(result["user_principal_id"], "123")

src/tests/api/helpers/test_chat_helper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import sys
77
import os
88

9-
# Add the project root to the path so we can import the module under test
109
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../../api")))
1110

1211
from helpers.chat_helper import process_rag_response, complete_chat_request

0 commit comments

Comments
 (0)