Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 18, 2026

The test_create_connector_client_normal_no_scopes test was mocking ClaimsIdentity without configuring the get_token_scope() method, which is called when scopes is None in RestChannelServiceClientFactory.create_connector_client().

Changes

  • Added mock configuration for claims_identity.get_token_scope() to return [f"{audience}/.default"] in test_create_connector_client_normal_no_scopes

This ensures the mock behaves consistently with the actual ClaimsIdentity.get_token_scope() implementation when the factory invokes scopes or claims_identity.get_token_scope().


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…opes

Co-authored-by: MattB-msft <10568244+MattB-msft@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback on get_token_scope method Mock get_token_scope in test_create_connector_client_normal_no_scopes Jan 18, 2026
Copilot AI requested a review from MattB-msft January 18, 2026 23:14
@MattB-msft MattB-msft closed this Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants