diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-30 16:42:23 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-30 16:42:23 +0300 |
| commit | fea0840ea65afb2b29abb378bd3c96697e0bbf4b (patch) | |
| tree | 9e18fa9d56ecae1a8c3014434eae9a5da82e3919 /internal/api/handlers_test.go | |
| parent | 6662a07a58d8d64792501864893ba543581c4dd8 (diff) | |
task ia: fix media listing/filtering semantics (favorites bool, filesize filters, permission scoping)
Diffstat (limited to 'internal/api/handlers_test.go')
| -rw-r--r-- | internal/api/handlers_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/handlers_test.go b/internal/api/handlers_test.go index 89aa177..8c2161c 100644 --- a/internal/api/handlers_test.go +++ b/internal/api/handlers_test.go @@ -577,8 +577,8 @@ func TestServer_MediaList(t *testing.T) { }, { name: "with query params", - query: "?set_id=1&type=video&search=foo&tags=bar,baz&favorites=2&min_duration=10&max_duration=100&sort=name&limit=5&offset=10", - filter: repository.MediaFilter{SetID: intPtr(1), Type: (*model.MediaType)(func() *string { s := "video"; return &s }()), Search: "foo", Tags: []string{"bar", "baz"}, Favorites: intPtr(2), MinDuration: floatPtr(10), MaxDuration: floatPtr(100), Sort: "name", Limit: 5, Offset: 10}, + query: "?set_id=1&type=video&search=foo&tags=bar,baz&favorites=true&min_duration=10&max_duration=100&sort=name&limit=5&offset=10", + filter: repository.MediaFilter{SetID: intPtr(1), Type: (*model.MediaType)(func() *string { s := "video"; return &s }()), Search: "foo", Tags: []string{"bar", "baz"}, Favorites: true, MinDuration: floatPtr(10), MaxDuration: floatPtr(100), Sort: "name", Limit: 5, Offset: 10}, listResult: []model.Media{}, wantCode: http.StatusOK, }, |
