(require 'wallpaper)
(ert-deftest wallpaper--find-setter ()
- (skip-unless (executable-find "touch"))
+ (skip-unless (and (executable-find "touch")
+ (wallpaper--use-default-set-function-p)))
(let (wallpaper--current-setter
(wallpaper--default-setters
(wallpaper--default-methods-create
(should (wallpaper--find-setter))))
(ert-deftest wallpaper--find-setter/call-predicate ()
- (skip-unless (executable-find "touch"))
+ (skip-unless (and (executable-find "touch")
+ (wallpaper--use-default-set-function-p)))
(let* ( wallpaper--current-setter called
(wallpaper--default-setters
(wallpaper--default-methods-create
(should called)))
(ert-deftest wallpaper--find-setter/set-current-setter ()
- (skip-unless (executable-find "touch"))
+ (skip-unless (and (executable-find "touch")
+ (wallpaper--use-default-set-function-p)))
(let (wallpaper--current-setter
(wallpaper--default-setters
(wallpaper--default-methods-create
(should wallpaper--current-setter)))
(ert-deftest wallpaper-set/runs-command ()
- (skip-unless (executable-find "touch"))
+ (skip-unless (and (executable-find "touch")
+ (wallpaper--use-default-set-function-p)))
(ert-with-temp-file fil-jpg
:suffix ".jpg"
(ert-with-temp-file fil
(should (file-exists-p fil)))))))
(ert-deftest wallpaper-set/runs-command/detach ()
- (skip-unless (executable-find "touch"))
+ (skip-unless (and (executable-find "touch")
+ (wallpaper--use-default-set-function-p)))
(ert-with-temp-file fil-jpg
:suffix ".jpg"
(ert-with-temp-file fil
(should (file-exists-p fil))))))
(ert-deftest wallpaper-set/calls-init-action ()
- (skip-unless (executable-find "touch"))
+ (skip-unless (and (executable-find "touch")
+ (wallpaper--use-default-set-function-p)))
(ert-with-temp-file fil-jpg
:suffix ".jpg"
(ert-with-temp-file fil
(should called)))))
(ert-deftest wallpaper-set/calls-wallpaper-set-function ()
- (skip-unless (executable-find "touch"))
+ (skip-unless (and (executable-find "touch")
+ (wallpaper--use-default-set-function-p)))
(ert-with-temp-file fil-jpg
:suffix ".jpg"
(let* ( wallpaper--current-setter called