Use /app/uploads directly for test library folder

- API validates folder exists before adding to library
- /app/uploads is mounted volume in container
- Avoids need to create subdirectories
- Simplifies test setup
This commit is contained in:
2026-02-09 14:42:30 -05:00
parent 94ed96e3ad
commit 255b1c6cf5
+2 -1
View File
@@ -297,8 +297,9 @@ func createTestMediaItemID(t *testing.T, ts *httptest.Server, token string) stri
libData := libResult["id"].(string)
// Add a folder to the library (required before adding media items)
// Use /app/uploads which is already mounted in the test container
folderReq := map[string]interface{}{
"folder_path": "/app/uploads/test-library",
"folder_path": "/app/uploads",
}
folderBody, _ := json.Marshal(folderReq)