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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user