Merge branch 'correct-and-improve-http-options' into 'develop'
[akkoma] / test / web / twitter_api / twitter_api_test.exs
index 76de68783260dcaa912eaf911989b9508f2d52c1..05f832de09ff490b60065d760b17a72c7eb6c1d4 100644 (file)
@@ -182,13 +182,15 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do
   end
 
   test "upload a file" do
+    user = insert(:user)
+
     file = %Plug.Upload{
       content_type: "image/jpg",
       path: Path.absname("test/fixtures/image.jpg"),
       filename: "an_image.jpg"
     }
 
-    response = TwitterAPI.upload(file)
+    response = TwitterAPI.upload(file, user)
 
     assert is_binary(response)
   end