Add Pleroma.Utils.command_available?/1 and use where appropriate

This commit is contained in:
Roman Chvanikov 2020-07-11 15:48:45 +03:00
commit aedbbec88a
4 changed files with 28 additions and 4 deletions

View file

@ -7,6 +7,8 @@ defmodule Pleroma.Upload.Filter.ExiftoolTest do
alias Pleroma.Upload.Filter
test "apply exiftool filter" do
assert Pleroma.Utils.command_available?("exiftool")
File.cp!(
"test/fixtures/DSCN0010.jpg",
"test/fixtures/DSCN0010_tmp.jpg"