diff options
author | lambda <pleromagit@rogerbraun.net> | 2018-05-06 18:42:31 +0000 |
---|---|---|
committer | lambda <pleromagit@rogerbraun.net> | 2018-05-06 18:42:31 +0000 |
commit | 6c2903d9a175cfbf3785d5c1a43e6fcac6b0e9f5 (patch) | |
tree | 6fec6e0ab38db719b2a826640a700c3746be7097 /test | |
parent | 2b708f76e05b4ece7a189d5c74adaf252c2e8b97 (diff) | |
parent | 7a884d70d8fd92a44c35911509b248a902275e07 (diff) | |
download | pleroma-6c2903d9a175cfbf3785d5c1a43e6fcac6b0e9f5.tar.gz pleroma-6c2903d9a175cfbf3785d5c1a43e6fcac6b0e9f5.zip |
Merge branch 'feld-warnings' into 'develop'
Clean up warnings
See merge request pleroma/pleroma!144
Diffstat (limited to 'test')
-rw-r--r-- | test/support/builders/activity_builder.ex | 2 | ||||
-rw-r--r-- | test/support/httpoison_mock.ex | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/support/builders/activity_builder.ex b/test/support/builders/activity_builder.ex index d9c188955..eb72d5ba9 100644 --- a/test/support/builders/activity_builder.ex +++ b/test/support/builders/activity_builder.ex @@ -26,7 +26,7 @@ defmodule Pleroma.Builders.ActivityBuilder do end def insert_list(times, data \\ %{}, opts \\ %{}) do - Enum.map(1..times, fn n -> + Enum.map(1..times, fn _n -> {:ok, activity} = insert(data, opts) activity end) diff --git a/test/support/httpoison_mock.ex b/test/support/httpoison_mock.ex index ba35c4460..4a5a9ea85 100644 --- a/test/support/httpoison_mock.ex +++ b/test/support/httpoison_mock.ex @@ -367,7 +367,7 @@ defmodule HTTPoisonMock do def post( "https://social.heldscal.la/main/push/hub", - {:form, data}, + {:form, _data}, "Content-type": "application/x-www-form-urlencoded" ) do {:ok, @@ -711,11 +711,11 @@ defmodule HTTPoisonMock do }"} end - def post(url, body, headers) do + def post(url, _body, _headers) do {:error, "Not implemented the mock response for post #{inspect(url)}"} end - def post(url, body, headers, options) do + def post(url, _body, _headers, _options) do {:error, "Not implemented the mock response for post #{inspect(url)}"} end end |