Skip to content

Commit 25c30a3

Browse files
committed
Consistent docstrings
1 parent ee140db commit 25c30a3

4 files changed

Lines changed: 22 additions & 22 deletions

File tree

tests/integration/endpoints/test_config_integration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ async def test_config_endpoint_returns_current_config(
4848
- Response structure matches expected format
4949
5050
Parameters:
51-
current_config: Loads root configuration
52-
test_request: FastAPI request
53-
test_auth: noop authentication tuple
51+
current_config (AppConfig): Loads root configuration
52+
test_request (Request): FastAPI request
53+
test_auth (AuthTuple): noop authentication tuple
5454
"""
5555
response = await config_endpoint_handler(auth=test_auth, request=test_request)
5656

tests/integration/endpoints/test_health_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async def test_health_readiness_provider_statuses(
8383
- Provider health status, ID, and error messages are correctly mapped
8484
- Multiple providers with different health states are handled correctly
8585
86-
Args:
86+
Parameters:
8787
mock_llama_stack_client_health: Mocked Llama Stack client
8888
mocker: pytest-mock fixture for creating mock objects
8989
"""
@@ -137,7 +137,7 @@ async def test_health_readiness_client_error(
137137
- Error propagates from the endpoint handler (desired behavior)
138138
- The endpoint does not catch RuntimeError, only APIConnectionError
139139
140-
Args:
140+
Parameters:
141141
test_response: FastAPI response object
142142
test_auth: noop authentication tuple
143143
"""

tests/integration/endpoints/test_info_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ async def test_info_endpoint_handles_connection_error(
9696
- HTTPException is raised with correct status code
9797
- Error response includes proper error details
9898
99-
Args:
99+
Parameters:
100100
test_config: Loads real configuration (required for endpoint to access config)
101101
mock_llama_stack_client: Mocked Llama Stack client
102102
test_request: FastAPI request
@@ -135,7 +135,7 @@ async def test_info_endpoint_uses_configuration_values(
135135
- Endpoint reads configuration values correctly
136136
- Service name from config appears in response
137137
138-
Args:
138+
Parameters:
139139
test_config: Loads real configuration (required for endpoint to access config)
140140
mock_llama_stack_client: Mocked Llama Stack client
141141
test_request: Real FastAPI request

tests/integration/endpoints/test_query_v2_integration.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ async def test_query_v2_endpoint_successful_response(
152152
- Response is correctly formatted
153153
- Conversation ID is returned
154154
155-
Args:
155+
Parameters:
156156
test_config: Test configuration
157157
mock_llama_stack_client: Mocked Llama Stack client
158158
test_request: FastAPI request
@@ -287,7 +287,7 @@ async def test_query_v2_endpoint_with_attachments(
287287
- Attachment content is included in request
288288
- Response handles attachments correctly
289289
290-
Args:
290+
Parameters:
291291
test_config: Test configuration
292292
mock_llama_stack_client: Mocked Llama Stack client
293293
test_request: FastAPI request
@@ -341,7 +341,7 @@ async def test_query_v2_endpoint_with_tool_calls(
341341
- RAG tool responses are included
342342
- Referenced documents are returned
343343
344-
Args:
344+
Parameters:
345345
test_config: Test configuration
346346
mock_llama_stack_client: Mocked Llama Stack client
347347
test_request: FastAPI request
@@ -407,7 +407,7 @@ async def test_query_v2_endpoint_with_mcp_list_tools(
407407
- Tool names list is captured
408408
- Server label is included
409409
410-
Args:
410+
Parameters:
411411
test_config: Test configuration
412412
mock_llama_stack_client: Mocked Llama Stack client
413413
test_request: FastAPI request
@@ -471,7 +471,7 @@ async def test_query_v2_endpoint_with_multiple_tool_types(
471471
- All tool summaries are included
472472
- Response text combines with tool results
473473
474-
Args:
474+
Parameters:
475475
test_config: Test configuration
476476
mock_llama_stack_client: Mocked Llama Stack client
477477
test_request: FastAPI request
@@ -660,7 +660,7 @@ async def test_query_v2_endpoint_persists_conversation_to_database(
660660
- User ID, model, provider are stored correctly
661661
- Topic summary is generated and stored
662662
663-
Args:
663+
Parameters:
664664
test_config: Test configuration
665665
mock_llama_stack_client: Mocked Llama Stack client
666666
test_request: FastAPI request
@@ -711,7 +711,7 @@ async def test_query_v2_endpoint_updates_existing_conversation(
711711
- Last message timestamp updates
712712
- Topic summary is NOT regenerated
713713
714-
Args:
714+
Parameters:
715715
test_config: Test configuration
716716
mock_llama_stack_client: Mocked Llama Stack client
717717
test_request: FastAPI request
@@ -772,7 +772,7 @@ async def test_query_v2_endpoint_conversation_ownership_validation(
772772
- User can access their own conversation
773773
- Conversation must exist in database
774774
775-
Args:
775+
Parameters:
776776
test_config: Test configuration
777777
mock_llama_stack_client: Mocked Llama Stack client
778778
test_request: FastAPI request
@@ -888,7 +888,7 @@ async def test_query_v2_endpoint_conversation_not_found_returns_404(
888888
- Status code is 404 NOT FOUND
889889
- Error message indicates conversation not found
890890
891-
Args:
891+
Parameters:
892892
test_config: Test configuration
893893
mock_llama_stack_client: Mocked Llama Stack client
894894
test_request: FastAPI request
@@ -944,7 +944,7 @@ async def test_query_v2_endpoint_with_shield_violation(
944944
Note: Shields are advisory - violations are logged but don't block requests.
945945
This matches query V1 behavior.
946946
947-
Args:
947+
Parameters:
948948
test_config: Test configuration
949949
mock_llama_stack_client: Mocked Llama Stack client
950950
test_request: FastAPI request
@@ -1006,7 +1006,7 @@ async def test_query_v2_endpoint_without_shields(
10061006
- extra_body.guardrails is not included when no shields
10071007
- Response succeeds without shields
10081008
1009-
Args:
1009+
Parameters:
10101010
test_config: Test configuration
10111011
mock_llama_stack_client: Mocked Llama Stack client
10121012
test_request: FastAPI request
@@ -1056,7 +1056,7 @@ async def test_query_v2_endpoint_handles_empty_llm_response(
10561056
- Response contains empty/minimal content
10571057
- Conversation is still persisted
10581058
1059-
Args:
1059+
Parameters:
10601060
test_config: Test configuration
10611061
mock_llama_stack_client: Mocked Llama Stack client
10621062
test_request: FastAPI request
@@ -1115,7 +1115,7 @@ async def test_query_v2_endpoint_quota_integration(
11151115
- Token usage from Llama Stack flows through quota system
11161116
- Complete integration between query handler and quota management
11171117
1118-
Args:
1118+
Parameters:
11191119
test_config: Test configuration
11201120
mock_llama_stack_client: Mocked Llama Stack client
11211121
test_request: FastAPI request
@@ -1239,7 +1239,7 @@ async def test_query_v2_endpoint_transcript_behavior(
12391239
- Conversation is persisted regardless of transcript setting
12401240
- Integration between query handler and transcript configuration
12411241
1242-
Args:
1242+
Parameters:
12431243
test_config: Test configuration
12441244
mock_llama_stack_client: Mocked Llama Stack client
12451245
test_request: FastAPI request
@@ -1329,7 +1329,7 @@ async def test_query_v2_endpoint_uses_conversation_history_model(
13291329
- Message count increments properly
13301330
- Integration between query handler and conversation persistence
13311331
1332-
Args:
1332+
Parameters:
13331333
test_config: Test configuration
13341334
mock_llama_stack_client: Mocked Llama Stack client
13351335
test_request: FastAPI request

0 commit comments

Comments
 (0)