1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Upload.Filter.DedupeTest do
9 alias Pleroma.Upload.Filter.Dedupe
11 @shasum "e30397b58d226d6583ab5b8b3c5defb0c682bda5c31ef07a9f57c1c4986e3781"
15 "test/fixtures/image.jpg",
16 "test/fixtures/image_tmp.jpg"
20 name: "an… image.jpg",
21 content_type: "image/jpg",
22 path: Path.absname("test/fixtures/image_tmp.jpg"),
23 tempfile: Path.absname("test/fixtures/image_tmp.jpg")
28 %Pleroma.Upload{id: @shasum, path: "#{@shasum}.jpg"}
29 } = Dedupe.filter(upload)