feat(tests): add mock response for file ownership in composio_module

This commit is contained in:
Anish Sarkar 2026-05-16 20:20:04 +05:30
parent 8de7d86d56
commit cc06cff4fb

View file

@ -350,6 +350,25 @@ def _drive_list_files(args: dict[str, Any]) -> dict[str, Any]:
folder id and serve the matching fixture list. folder id and serve the matching fixture list.
""" """
q = args.get("q", "") q = args.get("q", "")
if "in owners" in q:
return {
"data": {
"files": [
{
"id": "fake-file-owner-probe",
"name": "owner-probe",
"owners": [
{
"me": True,
"emailAddress": "e2e-fake@surfsense.example",
}
],
}
],
"nextPageToken": None,
}
}
folder_id = "root" folder_id = "root"
if "in parents" in q: if "in parents" in q:
# q looks like: '<folder_id>' in parents and trashed = false ... # q looks like: '<folder_id>' in parents and trashed = false ...