From 9191d7a1f19ab83ed8db9e0ae2b0bde88b120f49 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Wed, 30 Apr 2025 16:03:25 -0300 Subject: [PATCH] ffix: Update Gmail test to assert direct result_field return instead of full data dictionary (nightly fix) (#7866) --- .../tests/unit/components/bundles/composio/test_gmail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/tests/unit/components/bundles/composio/test_gmail.py b/src/backend/tests/unit/components/bundles/composio/test_gmail.py index be219832d..3bb4ca366 100644 --- a/src/backend/tests/unit/components/bundles/composio/test_gmail.py +++ b/src/backend/tests/unit/components/bundles/composio/test_gmail.py @@ -113,8 +113,8 @@ class TestGmailComponent(ComponentTestBaseWithoutClient): # Patch the _build_wrapper method with patch.object(component, "_build_wrapper", return_value=mock_toolset): result = component.execute_action() - # Based on the component's actual behavior, it returns the entire data dict - assert result == {"messages": "mocked response"} + # Based on the component's actual behavior, it returns the result_field directly + assert result == "mocked response" def test_execute_action_get_profile(self, component_class, default_kwargs, monkeypatch): # Mock Action enum