make musicFolderIds ints (#169)
* make `musicFolderId`s ints https://github.com/sentriz/gonic/issues/50#issuecomment-963257103 https://github.com/einsteinx2/iSubMusicStreamer/blob/006c1dafee6b926fde9d775cb0e64011a4662853/Classes/Models/API%20Models/MediaFolder.swift#L16 related #50 * add a test for multi folders and reused artists
This commit is contained in:
No files matched your search
@@ -2,7 +2,6 @@ package ctrlsubsonic
|
||||
|
||||
import (
|
||||
"net/url"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
_ "github.com/jinzhu/gorm/dialects/sqlite"
|
||||
@@ -14,8 +13,8 @@ func TestGetIndexes(t *testing.T) {
|
||||
|
||||
runQueryCases(t, contr, contr.ServeGetIndexes, []*queryCase{
|
||||
{url.Values{}, "no_args", false},
|
||||
{url.Values{"musicFolderId": {filepath.Join(m.TmpDir(), "m-0")}}, "with_music_folder_1", false},
|
||||
{url.Values{"musicFolderId": {filepath.Join(m.TmpDir(), "m-1")}}, "with_music_folder_2", false},
|
||||
{url.Values{"musicFolderId": {"0"}}, "with_music_folder_1", false},
|
||||
{url.Values{"musicFolderId": {"1"}}, "with_music_folder_2", false},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user