aboutsummaryrefslogtreecommitdiff
path: root/internal/gallery
diff options
context:
space:
mode:
authorRanXom <saiyedshizain@gmail.com>2026-07-13 14:23:30 +0530
committerRanXom <saiyedshizain@gmail.com>2026-07-13 14:23:30 +0530
commit343933855797b9ebff6b759019718c8ddccb7b28 (patch)
tree3bc13b172f41202adc9e66035e60836ed3a28944 /internal/gallery
parente48a9f9dafefef4844c49d417af8d13978455247 (diff)
downloadgalleryd-343933855797b9ebff6b759019718c8ddccb7b28.tar.xz
galleryd-343933855797b9ebff6b759019718c8ddccb7b28.zip
test: share image fixtures across packages
Diffstat (limited to 'internal/gallery')
-rw-r--r--internal/gallery/builder_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/gallery/builder_test.go b/internal/gallery/builder_test.go
index 88b4533..91fa4ae 100644
--- a/internal/gallery/builder_test.go
+++ b/internal/gallery/builder_test.go
@@ -17,8 +17,8 @@ func TestBuilder(t *testing.T) {
t.Run("builds gallery photos", func(t *testing.T) {
files := []scanner.File{
{
- Path: filepath.Join("..", "metadata", "testdata", "Canon_40D.jpg"),
- Root: "testdata",
+ Path: filepath.Join("..", "testfixtures", "Canon_40D.jpg"),
+ Root: "testfixtures",
RelativePath: "Canon_40D.jpg",
ModTime: time.Now(),
},
@@ -36,7 +36,7 @@ func TestBuilder(t *testing.T) {
t.Run("generates deterministic ids", func(t *testing.T) {
file := scanner.File{
- Path: filepath.Join("..", "metadata", "testdata", "Canon_40D.jpg"),
+ Path: filepath.Join("..", "testfixtures", "Canon_40D.jpg"),
Root: "photos",
RelativePath: "Canon_40D.jpg",
ModTime: time.Now(),