Correct KeywordID's with extra Zero

This commit is contained in:
Keith Martin
2024-10-27 11:44:33 +10:00
committed by Michael Mayer
parent 833685251c
commit 3d10d14963
2 changed files with 6 additions and 6 deletions

View File

@@ -37,19 +37,19 @@ var PhotoKeywordFixtures = PhotoKeywordMap{
},
"9": {
PhotoID: 10000029,
KeywordID: 10000005,
KeywordID: 1000005,
},
"10": {
PhotoID: 1000031,
KeywordID: 10000006,
KeywordID: 1000006,
},
"11": {
PhotoID: 1000032,
KeywordID: 10000008,
KeywordID: 1000008,
},
"12": {
PhotoID: 1000033,
KeywordID: 10000009,
KeywordID: 1000009,
},
"13": {
PhotoID: 1000034,

View File

@@ -46,7 +46,7 @@ func TestPhotosFilterFilter(t *testing.T) {
if err != nil {
t.Fatal(err)
}
assert.Equal(t, len(photos), 0)
assert.Equal(t, 1, len(photos))
})
t.Run("EndsWithPercent", func(t *testing.T) {
var f form.SearchPhotos
@@ -286,7 +286,7 @@ func TestPhotosQueryFilter(t *testing.T) {
if err != nil {
t.Fatal(err)
}
assert.Equal(t, len(photos), 0)
assert.Equal(t, 1, len(photos))
})
t.Run("EndsWithPercent", func(t *testing.T) {
var f form.SearchPhotos