Backend: Rename test files #442

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-08-12 04:39:05 +02:00
parent e0eaa72843
commit 336ad3e751
6 changed files with 8 additions and 8 deletions

View file

@ -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)

View file

@ -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)
}

View file

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

View file

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View file

@ -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",