Files
photoprism/internal/commands/show_config_options_test.go
2024-07-01 08:58:39 +02:00

22 lines
416 B
Go

package commands
import (
"testing"
"github.com/photoprism/photoprism/pkg/capture"
"github.com/stretchr/testify/assert"
)
func TestShowConfigOptionsCommand(t *testing.T) {
var err error
ctx := NewTestContext([]string{"config-options", "--md"})
output := capture.Stdout(func() {
err = ShowConfigOptionsCommand.Run(ctx)
})
assert.NoError(t, err)
assert.Contains(t, output, "PHOTOPRISM_IMPORT_PATH")
}