Files
photoprism/internal/commands/show_config_yaml_test.go
2024-12-09 15:11:39 +01:00

20 lines
380 B
Go

package commands
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestShowConfigYamlCommand(t *testing.T) {
// Run command with test context.
output, err := RunWithTestContext(ShowConfigYamlCommand, []string{"config-yaml", "--md"})
if err != nil {
t.Fatal(err)
}
assert.Contains(t, output, "ImportPath")
assert.Contains(t, output, "--sidecar-path")
}