File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ async def get_agent(cls) -> dict:
3636 )
3737
3838 project_index = project_client .indexes .create_or_update (
39- name = f"project-index-{ azure_ai_search_connection_name } -{ azure_ai_search_index_name } " ,
39+ name = f"project-index-{ azure_ai_search_index_name } -{ solution_name } " ,
4040 version = "1" ,
4141 body = {
4242 "connectionName" : azure_ai_search_connection_name ,
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ async def test_get_agent_creates_new_instance(
2929 mock_config .azure_ai_search_connection_name = "fake-connection"
3030 mock_config .azure_ai_search_index = "fake-index"
3131 mock_config .azure_openai_deployment_model = "fake-model"
32+ mock_config .solution_name = "fake-solution"
3233 mock_config_class .return_value = mock_config
3334
3435 # Mock project client
@@ -56,7 +57,7 @@ async def test_get_agent_creates_new_instance(
5657 assert result ["agent" ] == mock_agent
5758 assert result ["client" ] == mock_project_client
5859 mock_project_client .indexes .create_or_update .assert_called_once_with (
59- name = "project-index-fake-connection -fake-index " ,
60+ name = "project-index-fake-index -fake-solution " ,
6061 version = "1" ,
6162 body = {
6263 "connectionName" : "fake-connection" ,
You can’t perform that action at this time.
0 commit comments