From 032257b3416eac6f046190927c1d77ad7d488549 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 23:08:09 +0000 Subject: [PATCH 1/2] Initial plan From 628cf497bcc6d192b1006cb2575bc00bd11bf814 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 23:12:50 +0000 Subject: [PATCH 2/2] Add get_token_scope mock to test_create_connector_client_normal_no_scopes Co-authored-by: MattB-msft <10568244+MattB-msft@users.noreply.github.com> --- tests/hosting_core/test_rest_channel_service_client_factory.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hosting_core/test_rest_channel_service_client_factory.py b/tests/hosting_core/test_rest_channel_service_client_factory.py index ee0a16e9..a281d6b5 100644 --- a/tests/hosting_core/test_rest_channel_service_client_factory.py +++ b/tests/hosting_core/test_rest_channel_service_client_factory.py @@ -173,6 +173,7 @@ async def test_create_connector_client_normal_no_scopes( claims_identity = mocker.Mock(spec=ClaimsIdentity) service_url = DEFAULTS.service_url audience = "https://service.audience/" + claims_identity.get_token_scope = mocker.Mock(return_value=[f"{audience}/.default"]) context = mocker.Mock(spec=TurnContext) context.activity = activity