Tests: Update photo fixtures

This commit is contained in:
theresa 2021-08-17 16:40:24 +02:00
parent d45652ae76
commit e27d363c3e

View file

@ -1050,7 +1050,7 @@ var PhotoFixtures = PhotoMap{
PhotoStack: 0,
PhotoFaces: 0,
},
"Photo17": { // JPG Favorite, Quality 1, Places from metadata
"Photo17": { // JPG, Indexed, Favorite, Quality 1, Places from metadata
ID: 1000017,
PhotoUID: "pt9jtdre2lvl0y24",
TakenAt: time.Date(2013, 11, 11, 9, 7, 18, 0, time.UTC),
@ -1111,19 +1111,19 @@ var PhotoFixtures = PhotoMap{
PhotoStack: 0,
PhotoFaces: 0,
},
"Photo18": { // JPG
"Photo18": { // JPG, Indexed, Archived, Chroma 0
ID: 1000018,
PhotoUID: "pt9jtdre2lvl0y25",
TakenAt: time.Date(2013, 11, 11, 9, 7, 18, 0, time.UTC),
TakenAtLocal: time.Date(2013, 11, 11, 9, 7, 18, 0, time.UTC),
TakenSrc: "",
TakenSrc: SrcMeta,
PhotoType: "image",
TypeSrc: "",
PhotoTitle: "ArchivedChroma0",
TitleSrc: "",
PhotoDescription: "",
DescriptionSrc: "location",
PhotoPath: "1990/04",
DescriptionSrc: "",
PhotoPath: "Archived",
PhotoName: "Photo18",
OriginalName: "",
PhotoFavorite: true,
@ -1133,7 +1133,7 @@ var PhotoFixtures = PhotoMap{
TimeZone: "",
Place: PlaceFixtures.Pointer("mexico"),
PlaceID: PlaceFixtures.Pointer("mexico").ID,
PlaceSrc: "location",
PlaceSrc: SrcMeta,
Cell: CellFixtures.Pointer("mexico"),
CellID: CellFixtures.Pointer("mexico").ID,
CellAccuracy: 0,
@ -1141,9 +1141,9 @@ var PhotoFixtures = PhotoMap{
PhotoLat: 1.234,
PhotoLng: 4.321,
PhotoCountry: PlaceFixtures.Pointer("mexico").CountryCode(),
PhotoYear: 0,
PhotoMonth: 0,
PhotoDay: 4,
PhotoYear: 2013,
PhotoMonth: 11,
PhotoDay: 11,
PhotoIso: 0,
PhotoExposure: "",
PhotoFNumber: 0,
@ -1168,16 +1168,16 @@ var PhotoFixtures = PhotoMap{
EditedAt: nil,
CheckedAt: &checkedTime,
DeletedAt: &deleteTime,
PhotoColor: 14,
PhotoColor: 9,
PhotoStack: 0,
PhotoFaces: 0,
},
"Photo19": { // JPG
"Photo19": { // JPG, Indexed, Low Quality
ID: 1000019,
UUID: "123e4567-e89b-12d3-a456-426614174000",
PhotoUID: "pt9jtxrexxvl0yh0",
TakenAt: time.Date(2008, 1, 1, 0, 0, 0, 0, time.UTC),
TakenAtLocal: time.Time{},
TakenAtLocal: time.Date(2008, 1, 1, 0, 0, 0, 0, time.UTC),
TakenSrc: "",
PhotoType: "image",
TypeSrc: "",
@ -1203,9 +1203,9 @@ var PhotoFixtures = PhotoMap{
PhotoLat: 0,
PhotoLng: 0,
PhotoCountry: UnknownPlace.CountryCode(),
PhotoYear: 1990,
PhotoMonth: 4,
PhotoDay: 4,
PhotoYear: 2008,
PhotoMonth: 1,
PhotoDay: 1,
PhotoIso: 0,
PhotoExposure: "",
PhotoFNumber: 0,
@ -1224,11 +1224,11 @@ var PhotoFixtures = PhotoMap{
Files: []File{},
Labels: []PhotoLabel{},
CreatedAt: time.Date(2009, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2008, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2010, 1, 1, 0, 0, 0, 0, time.UTC),
EditedAt: nil,
CheckedAt: &checkedTime,
DeletedAt: nil,
PhotoColor: 14,
PhotoColor: 12,
PhotoStack: 0,
PhotoFaces: 0,
},
@ -1531,7 +1531,7 @@ var PhotoFixtures = PhotoMap{
PhotoStack: 0,
PhotoFaces: 0,
},
"Photo25": { // JPG + JPG sequential name
"Photo25": { // JPG, Indexed, Photo edited, Panorama true, Unstacked
ID: 1000025,
PhotoUID: "pt9jtdre2lvl0y45",
TakenAt: time.Date(2007, 1, 11, 9, 7, 18, 0, time.UTC),
@ -1540,12 +1540,12 @@ var PhotoFixtures = PhotoMap{
PhotoType: "image",
TypeSrc: "",
PhotoTitle: "photowitheditedatdate",
TitleSrc: "",
TitleSrc: SrcManual,
PhotoDescription: "",
DescriptionSrc: "location",
DescriptionSrc: "",
PhotoPath: "2007/12",
PhotoName: "PhotoWithEditedAt",
OriginalName: "OriginalPhotoWithEditedAt",
OriginalName: "",
PhotoFavorite: true,
PhotoPrivate: false,
PhotoScan: false,
@ -1553,7 +1553,7 @@ var PhotoFixtures = PhotoMap{
TimeZone: "",
Place: PlaceFixtures.Pointer("mexico"),
PlaceID: PlaceFixtures.Pointer("mexico").ID,
PlaceSrc: "location",
PlaceSrc: SrcMeta,
Cell: CellFixtures.Pointer("mexico"),
CellID: CellFixtures.Pointer("mexico").ID,
CellAccuracy: 0,
@ -1583,16 +1583,16 @@ var PhotoFixtures = PhotoMap{
Labels: []PhotoLabel{
LabelFixtures.PhotoLabel(10000018, "landscape", 20, "image"),
LabelFixtures.PhotoLabel(10000018, "likeLabel", 20, "image")},
CreatedAt: time.Date(2021, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2021, 1, 1, 0, 0, 0, 0, time.UTC),
CreatedAt: time.Date(2007, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2007, 3, 1, 0, 0, 0, 0, time.UTC),
EditedAt: &editTime,
CheckedAt: &checkedTime,
DeletedAt: nil,
PhotoColor: 14,
PhotoColor: 12,
PhotoStack: IsUnstacked,
PhotoFaces: 0,
},
"Photo26": {
"Photo26": { // JPG, Indexedd, Panorama, Unstacked
ID: 1000026,
PhotoUID: "pt9jtdre2lvl0y90",
TakenAt: time.Date(2007, 1, 11, 9, 7, 18, 0, time.UTC),
@ -1601,11 +1601,11 @@ var PhotoFixtures = PhotoMap{
PhotoType: "image",
TypeSrc: "",
PhotoTitle: "phototobebatchapproved",
TitleSrc: "",
TitleSrc: SrcAuto,
PhotoDescription: "",
DescriptionSrc: "location",
PhotoPath: "2000/12",
PhotoName: "PhotoToBeBatchApproved",
DescriptionSrc: "",
PhotoPath: "2007/12",
PhotoName: "PhotoWithEditedAt_2",
OriginalName: "",
PhotoFavorite: true,
PhotoPrivate: false,
@ -1614,7 +1614,7 @@ var PhotoFixtures = PhotoMap{
TimeZone: "",
Place: PlaceFixtures.Pointer("mexico"),
PlaceID: PlaceFixtures.Pointer("mexico").ID,
PlaceSrc: "location",
PlaceSrc: SrcMeta,
Cell: CellFixtures.Pointer("mexico"),
CellID: CellFixtures.Pointer("mexico").ID,
CellAccuracy: 0,
@ -1622,9 +1622,9 @@ var PhotoFixtures = PhotoMap{
PhotoLat: 1.234,
PhotoLng: 4.321,
PhotoCountry: PlaceFixtures.Pointer("mexico").CountryCode(),
PhotoYear: 0,
PhotoMonth: 0,
PhotoDay: 4,
PhotoYear: 2007,
PhotoMonth: 1,
PhotoDay: 11,
PhotoIso: 0,
PhotoExposure: "",
PhotoFNumber: 0,