photoprism/internal/config/cli_flags_test.go
Michael Mayer b9181bee6f Config: Update cli_flags_test.go
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-05-03 12:57:41 +02:00

25 lines
559 B
Go

package config
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestCliFlags_Cli(t *testing.T) {
cliFlags := Flags.Cli()
standard := Flags.Find([]string{})
assert.Greater(t, len(cliFlags), len(standard))
}
func TestCliFlags_Find(t *testing.T) {
cliFlags := Flags.Cli()
standard := Flags.Find([]string{})
essentials := Flags.Find([]string{Essentials})
other := Flags.Find([]string{"other"})
assert.Equal(t, len(standard), len(other))
assert.Equal(t, len(cliFlags), len(essentials))
assert.Less(t, len(other), len(essentials))
}