From c13af0408dc74156c2b4f33966a81740dcaa7b92 Mon Sep 17 00:00:00 2001 From: theresa Date: Thu, 5 Aug 2021 12:33:02 +0200 Subject: [PATCH] Tests: Update photo fixtures --- internal/entity/photo_fixtures.go | 38 +++++++++++++++---------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/internal/entity/photo_fixtures.go b/internal/entity/photo_fixtures.go index a73b3fdb6..130b9c6f0 100644 --- a/internal/entity/photo_fixtures.go +++ b/internal/entity/photo_fixtures.go @@ -27,28 +27,28 @@ func (m PhotoMap) Pointer(name string) *Photo { } var PhotoFixtures = PhotoMap{ - "19800101_000002_D640C559": { //JPG + "19800101_000002_D640C559": { //JPG, Imported, No Geoinformation ID: 1000000, // UUID: PhotoUID: "pt9jtdre2lvl0yh7", - TakenAt: time.Date(2008, 1, 1, 0, 0, 0, 0, time.UTC), - TakenAtLocal: time.Date(2008, 1, 1, 0, 0, 0, 0, time.UTC), + TakenAt: time.Date(2008, 7, 1, 10, 0, 0, 0, time.UTC), + TakenAtLocal: time.Date(2008, 7, 1, 12, 0, 0, 0, time.UTC), TakenSrc: "meta", PhotoType: "image", TypeSrc: "", - PhotoTitle: "", + PhotoTitle: "Lake / 2790", TitleSrc: "", PhotoDescription: "photo description lake", - DescriptionSrc: "", - PhotoPath: "2790/02", - PhotoName: "19800101_000002_D640C559", - OriginalName: "", + DescriptionSrc: "meta", + PhotoPath: "2790/07", + PhotoName: "27900704_070228_D6D51B6C", + OriginalName: "Vacation/exampleFileNameOriginal", PhotoFavorite: false, //PhotoSingle PhotoPrivate: false, PhotoScan: false, PhotoPanorama: false, - TimeZone: "", + TimeZone: "Europe/Berlin", Place: &UnknownPlace, PlaceID: UnknownPlace.ID, PlaceSrc: "", @@ -56,22 +56,22 @@ var PhotoFixtures = PhotoMap{ CellID: UnknownLocation.ID, CellAccuracy: 0, PhotoAltitude: 0, - PhotoLat: 48.519234, - PhotoLng: 9.057997, + PhotoLat: 0, + PhotoLng: 0, PhotoCountry: UnknownPlace.CountryCode(), PhotoYear: 2790, - PhotoMonth: 2, - PhotoDay: 11, - PhotoIso: 0, - PhotoExposure: "", + PhotoMonth: 7, + PhotoDay: 4, + PhotoIso: 200, + PhotoExposure: "1/80", PhotoFNumber: 5, - PhotoFocalLength: 0, - PhotoQuality: 4, + PhotoFocalLength: 50, + PhotoQuality: 3, PhotoResolution: 2, Camera: CameraFixtures.Pointer("canon-eos-6d"), CameraID: CameraFixtures.Pointer("canon-eos-6d").ID, CameraSerial: "", - CameraSrc: "", + CameraSrc: "meta", Lens: LensFixtures.Pointer("lens-f-380"), LensID: LensFixtures.Pointer("lens-f-380").ID, Details: DetailsFixtures.Pointer("lake", 1000000), @@ -91,7 +91,7 @@ var PhotoFixtures = PhotoMap{ EditedAt: nil, CheckedAt: &checkedTime, DeletedAt: nil, - PhotoColor: 14, + PhotoColor: 9, PhotoStack: 0, PhotoFaces: 5, },