photoprism/internal/commands/show_config_yaml_test.go
2023-07-20 20:02:02 +02:00

26 lines
481 B
Go

package commands
import (
"testing"
"github.com/photoprism/photoprism/internal/config"
"github.com/photoprism/photoprism/pkg/capture"
"github.com/stretchr/testify/assert"
)
func TestShowConfigYamlCommand(t *testing.T) {
var err error
ctx := config.CliTestContext()
output := capture.Output(func() {
err = ShowConfigYamlCommand.Run(ctx)
})
if err != nil {
t.Fatal(err)
}
assert.Contains(t, output, "ImportPath")
assert.Contains(t, output, "--sidecar-path")
}