mirror of
https://github.com/photoprism/photoprism.git
synced 2025-09-27 13:13:32 +08:00
20 lines
380 B
Go
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")
|
|
}
|