aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-07-21 19:31:03 +0000
committerlain <lain@soykaf.club>2020-07-21 19:31:03 +0000
commitfa2421dd7e09e6536ee18afa9c2f297932ff1102 (patch)
tree99d52ee68fdaef14d5fc3e63ec90e6f241ea56c5 /test
parent1b82b7eac94e4a59bcaaaf9065a2f70801d58e64 (diff)
parent6afc6717d642060b086d01c2bfff5ead0aad1273 (diff)
downloadpleroma-fa2421dd7e09e6536ee18afa9c2f297932ff1102.tar.gz
Merge branch 'gopher-fix' into 'develop'
Gopher: using atom keys in search params See merge request pleroma/pleroma!2775
Diffstat (limited to 'test')
-rw-r--r--test/upload/filter/anonymize_filename_test.exs2
-rw-r--r--test/uploaders/local_test.exs2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/upload/filter/anonymize_filename_test.exs b/test/upload/filter/anonymize_filename_test.exs
index 2d5c580f1..adff70f57 100644
--- a/test/upload/filter/anonymize_filename_test.exs
+++ b/test/upload/filter/anonymize_filename_test.exs
@@ -9,6 +9,8 @@ defmodule Pleroma.Upload.Filter.AnonymizeFilenameTest do
alias Pleroma.Upload
setup do
+ File.cp!("test/fixtures/image.jpg", "test/fixtures/image_tmp.jpg")
+
upload_file = %Upload{
name: "an… image.jpg",
content_type: "image/jpg",
diff --git a/test/uploaders/local_test.exs b/test/uploaders/local_test.exs
index ae2cfef94..18122ff6c 100644
--- a/test/uploaders/local_test.exs
+++ b/test/uploaders/local_test.exs
@@ -14,6 +14,7 @@ defmodule Pleroma.Uploaders.LocalTest do
describe "put_file/1" do
test "put file to local folder" do
+ File.cp!("test/fixtures/image.jpg", "test/fixtures/image_tmp.jpg")
file_path = "local_upload/files/image.jpg"
file = %Pleroma.Upload{
@@ -32,6 +33,7 @@ defmodule Pleroma.Uploaders.LocalTest do
describe "delete_file/1" do
test "deletes local file" do
+ File.cp!("test/fixtures/image.jpg", "test/fixtures/image_tmp.jpg")
file_path = "local_upload/files/image.jpg"
file = %Pleroma.Upload{