ffix: Update Gmail test to assert direct result_field return instead of full data dictionary (nightly fix) (#7866)

This commit is contained in:
Cristhian Zanforlin Lousa 2025-04-30 16:03:25 -03:00 committed by GitHub
commit 9191d7a1f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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