Tests: Correct portrait value for file fixtures
This commit is contained in:
parent
d4662efd2a
commit
16c2db9872
2 changed files with 54 additions and 53 deletions
|
@ -45,7 +45,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: true,
|
||||
FilePortrait: false,
|
||||
FileDuration: 0,
|
||||
FileWidth: 3648,
|
||||
FileHeight: 2736,
|
||||
|
@ -90,7 +90,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -174,7 +174,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -216,7 +216,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -258,7 +258,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -300,7 +300,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: true,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -342,7 +342,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -384,7 +384,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: true,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 17000000000,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -426,7 +426,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -468,7 +468,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: true,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 17000000000,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -510,7 +510,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -552,7 +552,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -594,7 +594,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -636,7 +636,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: true,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 17000000000,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -678,7 +678,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -804,7 +804,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: true,
|
||||
FilePortrait: false,
|
||||
FileDuration: 0,
|
||||
FileWidth: 200,
|
||||
FileHeight: 1100,
|
||||
|
@ -846,7 +846,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: true,
|
||||
FileMissing: false,
|
||||
FilePortrait: true,
|
||||
FilePortrait: false,
|
||||
FileDuration: 1000000000,
|
||||
FileWidth: 200,
|
||||
FileHeight: 1100,
|
||||
|
@ -888,7 +888,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: true,
|
||||
FilePortrait: false,
|
||||
FileDuration: 0,
|
||||
FileWidth: 200,
|
||||
FileHeight: 1100,
|
||||
|
@ -930,7 +930,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: true,
|
||||
FilePortrait: false,
|
||||
FileDuration: 0,
|
||||
FileWidth: 200,
|
||||
FileHeight: 1100,
|
||||
|
@ -1421,7 +1421,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 640,
|
||||
FileHeight: 1136,
|
||||
|
@ -1462,7 +1462,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 640,
|
||||
FileHeight: 1136,
|
||||
|
@ -1503,7 +1503,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 640,
|
||||
FileHeight: 1136,
|
||||
|
@ -1544,7 +1544,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 640,
|
||||
FileHeight: 1136,
|
||||
|
@ -1626,7 +1626,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 640,
|
||||
FileHeight: 1136,
|
||||
|
@ -1667,7 +1667,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 640,
|
||||
FileHeight: 1136,
|
||||
|
@ -1708,7 +1708,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 640,
|
||||
FileHeight: 1136,
|
||||
|
@ -1749,7 +1749,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -1790,7 +1790,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -1831,7 +1831,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -1872,7 +1872,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -1913,7 +1913,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -1954,7 +1954,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -1995,7 +1995,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2036,7 +2036,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2077,7 +2077,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2118,7 +2118,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2159,7 +2159,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2200,7 +2200,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2241,7 +2241,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2282,7 +2282,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2323,7 +2323,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2364,7 +2364,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2405,7 +2405,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2446,7 +2446,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2487,7 +2487,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2528,7 +2528,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2570,7 +2570,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2612,7 +2612,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2654,7 +2654,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2695,7 +2695,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2736,7 +2736,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 0,
|
||||
FileWidth: 1200,
|
||||
FileHeight: 1600,
|
||||
|
@ -2777,7 +2777,7 @@ var FileFixtures = FileMap{
|
|||
FileSidecar: false,
|
||||
FileVideo: false,
|
||||
FileMissing: false,
|
||||
FilePortrait: false,
|
||||
FilePortrait: true,
|
||||
FileDuration: 15000000000,
|
||||
FileFPS: 0.4666666666666667,
|
||||
FileFrames: 7,
|
||||
|
|
|
@ -18,7 +18,8 @@ func TestPhotosQueryPortrait(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
assert.GreaterOrEqual(t, len(photos0), 5)
|
||||
|
||||
assert.GreaterOrEqual(t, len(photos0), 40)
|
||||
|
||||
t.Run("false > yes", func(t *testing.T) {
|
||||
var f form.SearchPhotos
|
||||
|
|
Loading…
Reference in a new issue