diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-09-04 22:18:01 -0500 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-09-08 12:29:38 +0300 |
commit | 4ea07f74e9416da8f97a12cfdc24da82e1c00d91 (patch) | |
tree | b45b5d81bf91d7ba76326552e6b814bcae21433a /test | |
parent | 216c84a8f4d82649110ffaa2bc9d02b879805c5f (diff) | |
download | pleroma-4ea07f74e9416da8f97a12cfdc24da82e1c00d91.tar.gz |
Revert/simplify.
We only need to check the content-type. There's no chance a webp file
will get mismatched as another image type.
Diffstat (limited to 'test')
-rw-r--r-- | test/upload/filter/exiftool_test.exs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/upload/filter/exiftool_test.exs b/test/upload/filter/exiftool_test.exs index 84a3f8b30..d4cd4ba11 100644 --- a/test/upload/filter/exiftool_test.exs +++ b/test/upload/filter/exiftool_test.exs @@ -37,12 +37,6 @@ defmodule Pleroma.Upload.Filter.ExiftoolTest do content_type: "image/webp" } - bad_type = %Pleroma.Upload{ - name: "sample.webp", - content_type: "image/jpeg" - } - assert Filter.Exiftool.filter(upload) == {:ok, :noop} - assert Filter.Exiftool.filter(bad_type) == {:ok, :noop} end end |