Skip to content

Commit f862384

Browse files
pontemontiCopilot
andauthored
Update tests/tooling/extensions/azureaifoundry/services/test_send_chat_history.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6b90f5c commit f862384

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

tests/tooling/extensions/azureaifoundry/services/test_send_chat_history.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -629,14 +629,7 @@ async def test_handles_role_without_value_attribute(self, service, mock_turn_con
629629
message.content[0].text.value = "Hello"
630630
message.created_at = datetime.now(UTC)
631631

632-
# Mock isinstance to return True for MessageTextContent check
633-
with patch(
634-
"microsoft_agents_a365.tooling.extensions.azureaifoundry.services.mcp_tool_registration_service.isinstance",
635-
side_effect=lambda obj, cls: True
636-
if "MessageTextContent" in str(cls)
637-
else isinstance(obj, cls),
638-
):
639-
result = await service.send_chat_history_messages(mock_turn_context, [message])
632+
result = await service.send_chat_history_messages(mock_turn_context, [message])
640633

641634
# Should succeed - role is handled defensively
642635
assert result.succeeded is True

0 commit comments

Comments
 (0)