Index: Set labels based on matching keywords in title or subject #4602

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-11-01 12:15:39 +01:00
parent 6c5f7fac22
commit 924ddcf2cd
37 changed files with 399 additions and 114 deletions

View File

@@ -7,7 +7,7 @@ import (
)
func TestNewPassword(t *testing.T) {
t.Run("success", func(t *testing.T) {
t.Run("Success", func(t *testing.T) {
p := NewPassword("urrwaxd19ldtz68x", "passwd", false)
assert.Len(t, p.Hash, 60)
})
@@ -102,7 +102,7 @@ func TestPassword_Invalid(t *testing.T) {
}
func TestPassword_Create(t *testing.T) {
t.Run("success", func(t *testing.T) {
t.Run("Success", func(t *testing.T) {
p := Password{}
err := p.Create()