ffix: Update Gmail test to assert direct result_field return instead of full data dictionary (nightly fix) (#7866)
This commit is contained in:
parent
37fbbe0ebf
commit
9191d7a1f1
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue