@@ -1061,7 +1061,11 @@ class TestMcpOAuthTokenStorage:
10611061 async def test_create_session_defaults_mcp_oauth_token_storage_to_in_memory_in_empty_mode (
10621062 self ,
10631063 ):
1064- client = CopilotClient (connection = RuntimeConnection .for_stdio (path = CLI_PATH ), mode = "empty" )
1064+ client = CopilotClient (
1065+ connection = RuntimeConnection .for_stdio (path = CLI_PATH ),
1066+ mode = "empty" ,
1067+ base_directory = "/tmp/copilot-test" ,
1068+ )
10651069 await client .start ()
10661070
10671071 try :
@@ -1106,7 +1110,11 @@ async def mock_request(method, params, **kwargs):
11061110
11071111 @pytest .mark .asyncio
11081112 async def test_create_session_forwards_explicit_mcp_oauth_token_storage (self ):
1109- client = CopilotClient (connection = RuntimeConnection .for_stdio (path = CLI_PATH ), mode = "empty" )
1113+ client = CopilotClient (
1114+ connection = RuntimeConnection .for_stdio (path = CLI_PATH ),
1115+ mode = "empty" ,
1116+ base_directory = "/tmp/copilot-test" ,
1117+ )
11101118 await client .start ()
11111119
11121120 try :
@@ -1131,7 +1139,11 @@ async def mock_request(method, params, **kwargs):
11311139 async def test_resume_session_defaults_mcp_oauth_token_storage_to_in_memory_in_empty_mode (
11321140 self ,
11331141 ):
1134- client = CopilotClient (connection = RuntimeConnection .for_stdio (path = CLI_PATH ), mode = "empty" )
1142+ client = CopilotClient (
1143+ connection = RuntimeConnection .for_stdio (path = CLI_PATH ),
1144+ mode = "empty" ,
1145+ base_directory = "/tmp/copilot-test" ,
1146+ )
11351147 await client .start ()
11361148
11371149 try :
@@ -1161,7 +1173,11 @@ async def mock_request(method, params, **kwargs):
11611173
11621174 @pytest .mark .asyncio
11631175 async def test_resume_session_forwards_explicit_mcp_oauth_token_storage (self ):
1164- client = CopilotClient (connection = RuntimeConnection .for_stdio (path = CLI_PATH ), mode = "empty" )
1176+ client = CopilotClient (
1177+ connection = RuntimeConnection .for_stdio (path = CLI_PATH ),
1178+ mode = "empty" ,
1179+ base_directory = "/tmp/copilot-test" ,
1180+ )
11651181 await client .start ()
11661182
11671183 try :
0 commit comments