test: Update share client to fix test, update passwords

This commit is contained in:
Chris Coutinho
2025-10-15 10:35:22 +02:00
parent b50e212f05
commit 5db02313a1
3 changed files with 16 additions and 6 deletions
+5 -1
View File
@@ -124,7 +124,11 @@ class SharingClient(BaseNextcloudClient):
f"OCS API error: {data['ocs']['meta'].get('message', 'Unknown error')}"
)
return data["ocs"]["data"]
share_data = data["ocs"]["data"]
# The API returns a list with a single share, extract the first element
if isinstance(share_data, list) and len(share_data) > 0:
return share_data[0]
return share_data
@retry_on_429
async def list_shares(