From 343933855797b9ebff6b759019718c8ddccb7b28 Mon Sep 17 00:00:00 2001 From: RanXom Date: Mon, 13 Jul 2026 14:23:30 +0530 Subject: test: share image fixtures across packages --- internal/metadata/reader_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/metadata/reader_test.go') diff --git a/internal/metadata/reader_test.go b/internal/metadata/reader_test.go index ffbb587..0c9637b 100644 --- a/internal/metadata/reader_test.go +++ b/internal/metadata/reader_test.go @@ -14,7 +14,7 @@ func TestReader(t *testing.T) { t.Run("reads image dimensions", func(t *testing.T) { file := scanner.File{ - Path: filepath.Join("testdata", "Canon_40D.jpg"), + Path: filepath.Join("..", "testfixtures", "Canon_40D.jpg"), } metadata, err := reader.Read(context.Background(), file) @@ -29,7 +29,7 @@ func TestReader(t *testing.T) { t.Run("reads EXIF timestamp", func(t *testing.T) { file := scanner.File{ - Path: filepath.Join("testdata", "Canon_40D.jpg"), + Path: filepath.Join("..", "testfixtures", "Canon_40D.jpg"), } metadata, err := reader.Read(context.Background(), file) @@ -57,7 +57,7 @@ func TestReader(t *testing.T) { ) file := scanner.File{ - Path: filepath.Join("testdata", "no-exif.png"), + Path: filepath.Join("..", "testfixtures", "no-exif.png"), ModTime: modTime, } @@ -77,7 +77,7 @@ func TestReader(t *testing.T) { t.Run("returns default orientation", func(t *testing.T) { file := scanner.File{ - Path: filepath.Join("testdata", "no-exif.png"), + Path: filepath.Join("..", "testfixtures", "no-exif.png"), } metadata, err := reader.Read(context.Background(), file) -- cgit v1.2.3