diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-07-13 14:30:34 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-07-13 14:30:34 +0530 |
| commit | dc6aab4910c589e1e37e7cb93d65a1195fbbca1f (patch) | |
| tree | 406fc321c7c5f99a81b0d02e9362171d1a071776 /internal/gallery/builder_test.go | |
| parent | 343933855797b9ebff6b759019718c8ddccb7b28 (diff) | |
| download | galleryd-dc6aab4910c589e1e37e7cb93d65a1195fbbca1f.tar.xz galleryd-dc6aab4910c589e1e37e7cb93d65a1195fbbca1f.zip | |
test: add shared fixture helpers
Diffstat (limited to 'internal/gallery/builder_test.go')
| -rw-r--r-- | internal/gallery/builder_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/gallery/builder_test.go b/internal/gallery/builder_test.go index 91fa4ae..634bd89 100644 --- a/internal/gallery/builder_test.go +++ b/internal/gallery/builder_test.go @@ -2,12 +2,12 @@ package gallery import ( "context" - "path/filepath" "testing" "time" "github.com/RanXom/galleryd/internal/metadata" "github.com/RanXom/galleryd/internal/scanner" + "github.com/RanXom/galleryd/internal/testfixtures" ) func TestBuilder(t *testing.T) { @@ -17,7 +17,7 @@ func TestBuilder(t *testing.T) { t.Run("builds gallery photos", func(t *testing.T) { files := []scanner.File{ { - Path: filepath.Join("..", "testfixtures", "Canon_40D.jpg"), + Path: testfixtures.Canon40D(), 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("..", "testfixtures", "Canon_40D.jpg"), + Path: testfixtures.Canon40D(), Root: "photos", RelativePath: "Canon_40D.jpg", ModTime: time.Now(), |