Commit avant changement d'agent vers devstral

This commit is contained in:
2025-11-13 17:00:47 +01:00
parent a09b73e4f1
commit cc1d6880a7
25 changed files with 2903 additions and 89 deletions

View File

@ -11,6 +11,7 @@ import (
"strings"
"testing"
"github.com/mathieu/personotes/internal/i18n"
"github.com/mathieu/personotes/internal/indexer"
)
@ -32,7 +33,10 @@ func newTestHandler(t *testing.T, notesDir string) *Handler {
t.Fatalf("impossible d'analyser les templates de test: %v", err)
}
return NewHandler(notesDir, indexer.New(), tpl, log.New(io.Discard, "", 0))
// Create a minimal translator for tests
translator := i18n.New("en")
return NewHandler(notesDir, indexer.New(), tpl, log.New(io.Discard, "", 0), translator)
}
func TestHandler_Search(t *testing.T) {