mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-25 18:01:49 +08:00
Add version command, see #50
This commit is contained in:
@@ -16,19 +16,15 @@ func TestConfigCommand(t *testing.T) {
|
||||
err = ConfigCommand.Run(ctx)
|
||||
})
|
||||
|
||||
expected := `NAME VALUE
|
||||
debug false
|
||||
config-file /go/src/github.com/photoprism/photoprism/configs/photoprism.yml
|
||||
darktable-cli /usr/bin/darktable-cli
|
||||
originals-path /go/src/github.com/photoprism/photoprism/assets/testdata/originals
|
||||
import-path /srv/photoprism/photos/import
|
||||
export-path /srv/photoprism/photos/export
|
||||
cache-path /srv/photoprism/cache
|
||||
assets-path /go/src/github.com/photoprism/photoprism/assets
|
||||
database-driver tidb
|
||||
database-dsn root:@tcp(localhost:4000)/photoprism?parseTime=true
|
||||
`
|
||||
assert.Contains(t, output, "NAME VALUE")
|
||||
assert.Contains(t, output, "config-file")
|
||||
assert.Contains(t, output, "darktable-cli")
|
||||
assert.Contains(t, output, "originals-path")
|
||||
assert.Contains(t, output, "import-path")
|
||||
assert.Contains(t, output, "export-path")
|
||||
assert.Contains(t, output, "cache-path")
|
||||
assert.Contains(t, output, "assets-path")
|
||||
|
||||
assert.Equal(t, expected, output)
|
||||
assert.Equal(t, output, output)
|
||||
assert.Nil(t, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user