mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 08:44:04 +01:00
22 lines
416 B
Go
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")
|
|
}
|