flamenco/internal/worker/command_blender_windows_test.go
Sybren A. Stüvel 4181708709 Worker: automatically find Blender on Windows via file association
On Windows, when the Manager doesn't explicitly point at a Blender to use,
use the the application associated with `.blend` files instead.
2022-04-09 15:05:34 +02:00

22 lines
469 B
Go

//go:build windows
// SPDX-License-Identifier: GPL-3.0-or-later
package worker
import (
"testing"
"github.com/stretchr/testify/assert"
)
// TestFindBlender is a "weak" test, which actually accepts both happy and unhappy flows.
// It would be too fragile to always require a file association to be set up with Blender.
func TestFindBlender(t *testing.T) {
exe, err := FindBlender()
if err == nil {
assert.NotEmpty(t, exe)
} else {
assert.Empty(t, exe)
}
}