From 2f674c5bb783555e969c8161885f3bc392d56597 Mon Sep 17 00:00:00 2001 From: theresa Date: Mon, 16 Aug 2021 15:18:30 +0200 Subject: [PATCH] Tests: Update places fixtures --- internal/entity/cell_fixtures.go | 9 +++++++++ internal/entity/place_fixtures.go | 12 ++++++++++++ 2 files changed, 21 insertions(+) diff --git a/internal/entity/cell_fixtures.go b/internal/entity/cell_fixtures.go index bb0282e9e..dfa60d658 100644 --- a/internal/entity/cell_fixtures.go +++ b/internal/entity/cell_fixtures.go @@ -103,6 +103,15 @@ var CellFixtures = CellMap{ CreatedAt: Timestamp(), UpdatedAt: Timestamp(), }, + "Neckarbrücke": { + ID: s2.TokenPrefix + "1ef744d1e284", + PlaceID: PlaceFixtures.Get("Germany").ID, + Place: PlaceFixtures.Pointer("Germany"), + CellName: "Neckarbrücke", + CellCategory: "", + CreatedAt: Timestamp(), + UpdatedAt: Timestamp(), + }, } // CreateCellFixtures inserts known entities into the database for testing. diff --git a/internal/entity/place_fixtures.go b/internal/entity/place_fixtures.go index bb5e34103..18a966af7 100644 --- a/internal/entity/place_fixtures.go +++ b/internal/entity/place_fixtures.go @@ -107,6 +107,18 @@ var PlaceFixtures = PlacesMap{ CreatedAt: Timestamp(), UpdatedAt: Timestamp(), }, + "Germany": { + ID: s2.TokenPrefix + "1ef744d1e285", + PlaceLabel: "Germany", + PlaceCity: "", + PlaceState: "", + PlaceCountry: "de", + PlaceKeywords: "", + PlaceFavorite: false, + PhotoCount: 1, + CreatedAt: Timestamp(), + UpdatedAt: Timestamp(), + }, } // CreatePlaceFixtures inserts known entities into the database for testing.