1
0
Fork 0
forked from forgejo/forgejo

Add the ability to use multiple labels as filters(#5786)

This commit is contained in:
Lauris BH 2019-01-23 06:10:38 +02:00 committed by techknowlogick
parent 6a949af8ca
commit 075649572d
9 changed files with 74 additions and 24 deletions

View file

@ -193,11 +193,19 @@ func TestIssues(t *testing.T) {
},
{
IssuesOptions{
Labels: "1,2",
LabelIDs: []int64{1},
Page: 1,
PageSize: 4,
},
[]int64{5, 2, 1},
[]int64{2, 1},
},
{
IssuesOptions{
LabelIDs: []int64{1, 2},
Page: 1,
PageSize: 4,
},
[]int64{}, // issues with **both** label 1 and 2, none of these issues matches, TODO: add more tests
},
} {
issues, err := Issues(&test.Opts)