photoprism/internal/config/darktable_test.go
Michael Mayer 161b36f8a4 Refactor config and worker tests for better performance
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-07-13 20:25:47 +02:00

18 lines
344 B
Go

package config
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestConfig_DarktableUnlock(t *testing.T) {
c := NewConfig(CliTestContext())
assert.False(t, c.DarktableUnlock())
}
func TestConfig_Darktablebin(t *testing.T) {
c := NewConfig(CliTestContext())
assert.Equal(t, "/usr/bin/darktable-cli", c.DarktableBin())
}