Tests: Update fixtures

This commit is contained in:
theresa
2021-07-22 15:05:23 +02:00
parent dcebf32c2c
commit de1eee18bf
6 changed files with 38 additions and 14 deletions

View File

@@ -10,7 +10,7 @@ func TestFileSyncMap_Get(t *testing.T) {
t.Run("get existing filesync", func(t *testing.T) {
r := FileSyncFixtures.Get("FileSync1", 0, "")
assert.Equal(t, uint(1000000), r.AccountID)
assert.Equal(t, "name for remote sync", r.RemoteName)
assert.Equal(t, "/20200706-092527-Landscape-München-2020.jpg", r.RemoteName)
assert.IsType(t, FileSync{}, r)
})
t.Run("get not existing filesync", func(t *testing.T) {
@@ -25,7 +25,7 @@ func TestFileSyncMap_Pointer(t *testing.T) {
t.Run("get existing filesync pointer", func(t *testing.T) {
r := FileSyncFixtures.Pointer("FileSync1", 0, "")
assert.Equal(t, uint(1000000), r.AccountID)
assert.Equal(t, "name for remote sync", r.RemoteName)
assert.Equal(t, "/20200706-092527-Landscape-München-2020.jpg", r.RemoteName)
assert.IsType(t, &FileSync{}, r)
})
t.Run("get not existing filesync pointer", func(t *testing.T) {