|
|
@ -229,8 +229,7 @@ func TestGetLabelsByOrgID(t *testing.T) {
|
|
|
|
testSuccess(3, "reversealphabetically", []int64{4, 3})
|
|
|
|
testSuccess(3, "reversealphabetically", []int64{4, 3})
|
|
|
|
testSuccess(3, "default", []int64{3, 4})
|
|
|
|
testSuccess(3, "default", []int64{3, 4})
|
|
|
|
|
|
|
|
|
|
|
|
var err error
|
|
|
|
_, err := issues_model.GetLabelsByOrgID(db.DefaultContext, 0, "leastissues", db.ListOptions{})
|
|
|
|
_, err = issues_model.GetLabelsByOrgID(db.DefaultContext, 0, "leastissues", db.ListOptions{})
|
|
|
|
|
|
|
|
assert.True(t, issues_model.IsErrOrgLabelNotExist(err))
|
|
|
|
assert.True(t, issues_model.IsErrOrgLabelNotExist(err))
|
|
|
|
|
|
|
|
|
|
|
|
_, err = issues_model.GetLabelsByOrgID(db.DefaultContext, -1, "leastissues", db.ListOptions{})
|
|
|
|
_, err = issues_model.GetLabelsByOrgID(db.DefaultContext, -1, "leastissues", db.ListOptions{})
|
|
|
|