Backend: Rename test files #442
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
e0eaa72843
commit
336ad3e751
6 changed files with 8 additions and 8 deletions
|
@ -15,7 +15,7 @@ import (
|
|||
func TestIndexRelated(t *testing.T) {
|
||||
conf := config.TestConfig()
|
||||
|
||||
testFile, err := NewMediaFile("testdata/2018-04-12 19:24:49.gif")
|
||||
testFile, err := NewMediaFile("testdata/2018-04-12 19_24_49.gif")
|
||||
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
@ -38,7 +38,7 @@ func TestIndexRelated(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
mainFile, err := NewMediaFile(filepath.Join(testPath, "2018-04-12 19:24:49.gif"))
|
||||
mainFile, err := NewMediaFile(filepath.Join(testPath, "2018-04-12 19_24_49.gif"))
|
||||
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
|
@ -68,8 +68,8 @@ func TestMediaFile_DateCreated(t *testing.T) {
|
|||
|
||||
func TestMediaFile_TakenAt(t *testing.T) {
|
||||
conf := config.TestConfig()
|
||||
t.Run("testdata/2018-04-12 19:24:49.gif", func(t *testing.T) {
|
||||
mediaFile, err := NewMediaFile("testdata/2018-04-12 19:24:49.gif")
|
||||
t.Run("testdata/2018-04-12 19_24_49.gif", func(t *testing.T) {
|
||||
mediaFile, err := NewMediaFile("testdata/2018-04-12 19_24_49.gif")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
@ -78,8 +78,8 @@ func TestMediaFile_TakenAt(t *testing.T) {
|
|||
assert.Equal(t, "2018-04-12 19:24:49 +0000 UTC", date.String())
|
||||
assert.Equal(t, entity.SrcName, src)
|
||||
})
|
||||
t.Run("testdata/2018-04-12 19:24:49.jpg", func(t *testing.T) {
|
||||
mediaFile, err := NewMediaFile("testdata/2018-04-12 19:24:49.jpg")
|
||||
t.Run("testdata/2018-04-12 19_24_49.jpg", func(t *testing.T) {
|
||||
mediaFile, err := NewMediaFile("testdata/2018-04-12 19_24_49.jpg")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
|
@ -1,7 +1,7 @@
|
|||
[{
|
||||
"SourceFile": "/go/src/github.com/photoprism/photoprism/storage/originals/Debug/2018-04-12 19:24:49.gif",
|
||||
"SourceFile": "/go/src/github.com/photoprism/photoprism/storage/originals/Debug/2018-04-12 19_24_49.gif",
|
||||
"ExifToolVersion": 10.80,
|
||||
"FileName": "2018-04-12 19:24:49.gif",
|
||||
"FileName": "2018-04-12 19_24_49.gif",
|
||||
"Directory": "/go/src/github.com/photoprism/photoprism/storage/originals/Debug",
|
||||
"FileSize": "4.9 MB",
|
||||
"FileModifyDate": "2020:07:13 16:41:17+00:00",
|
Loading…
Reference in a new issue