Change user.discoverable field to user.is_discoverable
[akkoma] / test / uploaders / s3_test.exs
index 96c21c0e5c0cfc8313989ffed6398675921051ba..d949c90a5c2ce183fb0a8d869a4f4edee1891ca4 100644 (file)
@@ -11,10 +11,11 @@ defmodule Pleroma.Uploaders.S3Test do
   import Mock
   import ExUnit.CaptureLog
 
-  clear_config(Pleroma.Uploaders.S3,
-    bucket: "test_bucket",
-    public_endpoint: "https://s3.amazonaws.com"
-  )
+  setup do:
+          clear_config(Pleroma.Uploaders.S3,
+            bucket: "test_bucket",
+            public_endpoint: "https://s3.amazonaws.com"
+          )
 
   describe "get_file/1" do
     test "it returns path to local folder for files" do
@@ -57,7 +58,7 @@ defmodule Pleroma.Uploaders.S3Test do
         name: "image-tet.jpg",
         content_type: "image/jpg",
         path: "test_folder/image-tet.jpg",
-        tempfile: Path.absname("test/fixtures/image_tmp.jpg")
+        tempfile: Path.absname("test/instance_static/add/shortcode.png")
       }
 
       [file_upload: file_upload]