Backend: Update places tests

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-04-29 00:17:44 +02:00
parent 0e9a90fd6b
commit f957610fc9

View file

@ -36,7 +36,7 @@ func TestLocation_Assign(t *testing.T) {
}
assert.Equal(t, "Comici I", o.Name())
assert.Equal(t, "Trentino-Alto Adige/Südtirol", o.State())
assert.Equal(t, "Trentino-Alto Adige", o.State())
assert.Equal(t, "it", o.CountryCode())
var l Location
@ -46,9 +46,9 @@ func TestLocation_Assign(t *testing.T) {
}
assert.Equal(t, "Comici I", l.LocName)
assert.Equal(t, "Plan de Gralba, Trentino-Alto Adige/Südtirol, Italy", l.LocLabel)
assert.Equal(t, "Plan de Gralba, Trentino-Alto Adige, Italy", l.LocLabel)
assert.IsType(t, []string{}, l.Keywords())
assert.Equal(t, "", l.KeywordString())
assert.Equal(t, "südtirol", l.KeywordString())
})
t.Run("BerlinFernsehturm", func(t *testing.T) {