aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-02-12 09:33:01 +0100
committerlain <lain@soykaf.club>2018-02-12 09:33:01 +0100
commit33a5d0a2385984168f7de063093c6a71c8b07b73 (patch)
tree0ebe821ce5f49794948922e1605a28d08d254dce
parent91928b06ab9574f68a48003401083783a540da87 (diff)
downloadpleroma-33a5d0a2385984168f7de063093c6a71c8b07b73.tar.gz
Fix some test warnings.
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs10
-rw-r--r--test/web/twitter_api/twitter_api_controller_test.exs4
2 files changed, 7 insertions, 7 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs
index 93b29dfae..e4c59d9ff 100644
--- a/test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/test/web/mastodon_api/mastodon_api_controller_test.exs
@@ -530,7 +530,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
end
describe "updating credentials" do
- test "updates the user's bio" do
+ test "updates the user's bio", %{conn: conn} do
user = insert(:user)
conn = conn
@@ -541,7 +541,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
assert user["note"] == "I drink #cofe"
end
- test "updates the user's name" do
+ test "updates the user's name", %{conn: conn} do
user = insert(:user)
conn = conn
@@ -552,7 +552,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
assert user["display_name"] == "markorepairs"
end
- test "updates the user's avatar" do
+ test "updates the user's avatar", %{conn: conn} do
user = insert(:user)
new_avatar = %Plug.Upload{content_type: "image/jpg", path: Path.absname("test/fixtures/image.jpg"), filename: "an_image.jpg"}
@@ -565,7 +565,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
assert user["avatar"] != "https://placehold.it/48x48"
end
- test "updates the user's banner" do
+ test "updates the user's banner", %{conn: conn} do
user = insert(:user)
new_header = %Plug.Upload{content_type: "image/jpg", path: Path.absname("test/fixtures/image.jpg"), filename: "an_image.jpg"}
@@ -579,7 +579,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
end
end
- test "get instance information" do
+ test "get instance information", %{conn: conn} do
insert(:user, %{local: true})
user = insert(:user, %{local: true})
insert(:user, %{local: false})
diff --git a/test/web/twitter_api/twitter_api_controller_test.exs b/test/web/twitter_api/twitter_api_controller_test.exs
index 39f1cdd4c..78d4fdcb3 100644
--- a/test/web/twitter_api/twitter_api_controller_test.exs
+++ b/test/web/twitter_api/twitter_api_controller_test.exs
@@ -585,7 +585,7 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
end
describe "POST /api/account/update_profile.json" do
- test "it updates a user's profile" do
+ test "it updates a user's profile", %{conn: conn} do
user = insert(:user)
conn = conn
@@ -627,7 +627,7 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
end
describe "GET /api/statusnet/tags/timeline/:tag.json" do
- test "it returns the tags timeline" do
+ test "it returns the tags timeline", %{conn: conn} do
user = insert(:user)
user_two = insert(:user, %{nickname: "shp@shitposter.club"})