@@ -2150,9 +2150,9 @@ async def test_prepare_responses_params_includes_mcp_provider_data_headers(
21502150
21512151 # The result should contain extra_headers with x-llamastack-provider-data
21522152 dumped = result .model_dump ()
2153- assert (
2154- dumped [ "extra_headers" ] is not None
2155- ), "extra_headers should not be None when MCP tools have headers"
2153+ assert dumped [ "extra_headers" ] is not None , (
2154+ "extra_headers should not be None when MCP tools have headers"
2155+ )
21562156 assert "x-llamastack-provider-data" in dumped ["extra_headers" ]
21572157
21582158 provider_data = json .loads (
@@ -3148,14 +3148,6 @@ def test_multiple_stores_source_is_none(self, mocker: MockerFixture) -> None:
31483148class TestGetVectorStoreIds :
31493149 """Tests for get_vector_store_ids utility function."""
31503150
3151- @pytest .mark .asyncio
3152- async def test_returns_provided_ids_directly (self , mocker : MockerFixture ) -> None :
3153- """Test that provided vector_store_ids are returned without fetching."""
3154- client_mock = mocker .AsyncMock ()
3155- result = await get_vector_store_ids (client_mock , ["vs1" , "vs2" ])
3156- assert result == ["vs1" , "vs2" ]
3157- client_mock .vector_stores .list .assert_not_called ()
3158-
31593151 @pytest .mark .asyncio
31603152 async def test_fetches_all_when_no_ids_provided (
31613153 self , mocker : MockerFixture
@@ -3172,7 +3164,7 @@ async def test_fetches_all_when_no_ids_provided(
31723164 client_mock = mocker .AsyncMock ()
31733165 client_mock .vector_stores .list .return_value = mock_list_result
31743166
3175- result = await get_vector_store_ids (client_mock , None )
3167+ result = await get_vector_store_ids (client_mock )
31763168 assert result == ["vs-fetched-1" , "vs-fetched-2" ]
31773169 client_mock .vector_stores .list .assert_called_once ()
31783170
@@ -3185,7 +3177,7 @@ async def test_raises_on_connection_error(self, mocker: MockerFixture) -> None:
31853177 )
31863178
31873179 with pytest .raises (HTTPException ) as exc_info :
3188- await get_vector_store_ids (client_mock , None )
3180+ await get_vector_store_ids (client_mock )
31893181 assert exc_info .value .status_code == 503
31903182
31913183 @pytest .mark .asyncio
@@ -3202,7 +3194,7 @@ async def test_raises_on_api_status_error(self, mocker: MockerFixture) -> None:
32023194 )
32033195
32043196 with pytest .raises (HTTPException ) as exc_info :
3205- await get_vector_store_ids (client_mock , None )
3197+ await get_vector_store_ids (client_mock )
32063198 assert exc_info .value .status_code == 500
32073199
32083200
0 commit comments