test: add tests for folder browser APIs and system credentials toggle

Added tests for POST /api/dropbox/list-folders (7 tests) and
POST /api/onedrive/list-folders (7 tests) covering success, subfolder
navigation, empty directories, auth errors, API errors, path
normalization, and alphabetical sorting.

Added view tests for system credentials toggle visibility in Dropbox
setup wizard.

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-20 13:40:51 +00:00
parent a8423064ec
commit 1e1e6e6280
6 changed files with 386 additions and 13 deletions
+1 -1
View File
@@ -270,7 +270,7 @@ async def list_onedrive_folders(
raw_parent = item["parentReference"]["path"]
prefix = "/drive/root:"
if raw_parent.startswith(prefix):
parent_path = raw_parent[len(prefix):]
parent_path = raw_parent[len(prefix) :]
elif raw_parent == "/drive/root":
parent_path = ""