2020-08-12 13:16:25 +02:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestConfig_RawtherapeeBin(t *testing.T) {
|
|
|
|
c := NewConfig(CliTestContext())
|
|
|
|
|
|
|
|
assert.Equal(t, "/usr/bin/rawtherapee-cli", c.RawtherapeeBin())
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestConfig_DarktableBin(t *testing.T) {
|
|
|
|
c := NewConfig(CliTestContext())
|
|
|
|
|
|
|
|
assert.Equal(t, "/usr/bin/darktable-cli", c.DarktableBin())
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestConfig_DarktablePresets(t *testing.T) {
|
|
|
|
c := NewConfig(CliTestContext())
|
|
|
|
|
2021-05-01 10:25:34 +02:00
|
|
|
assert.False(t, c.RawPresets())
|
2020-08-12 13:16:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestConfig_SipsBin(t *testing.T) {
|
|
|
|
c := NewConfig(CliTestContext())
|
|
|
|
|
|
|
|
bin := c.SipsBin()
|
|
|
|
assert.Equal(t, "", bin)
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestConfig_HeifConvertBin(t *testing.T) {
|
|
|
|
c := NewConfig(CliTestContext())
|
|
|
|
|
|
|
|
bin := c.HeifConvertBin()
|
2021-02-22 21:09:50 +01:00
|
|
|
assert.Contains(t, bin, "/bin/heif-convert")
|
2020-08-12 13:16:25 +02:00
|
|
|
}
|