mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-19 18:45:15 +02:00
feat(tests): add mock response for file ownership in composio_module
This commit is contained in:
parent
8de7d86d56
commit
cc06cff4fb
1 changed files with 19 additions and 0 deletions
|
|
@ -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 ...
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue