mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Tests: Update fixtures
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user