Treat warnings as errors outside of tests.
This commit is contained in:
parent
e94c3442f4
commit
c81c74d847
6 changed files with 12 additions and 9 deletions
|
|
@ -1,5 +1,4 @@
|
|||
defmodule Pleroma.Builders.ActivityBuilder do
|
||||
alias Pleroma.Builders.UserBuilder
|
||||
alias Pleroma.Web.ActivityPub.ActivityPub
|
||||
|
||||
def build(data \\ %{}, opts \\ %{}) do
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ defmodule HttpRequestMock do
|
|||
with {:ok, res} <- apply(__MODULE__, method, [url, query, body, headers]) do
|
||||
res
|
||||
else
|
||||
{_, r} = error ->
|
||||
{_, _r} = error ->
|
||||
# Logger.warn(r)
|
||||
error
|
||||
end
|
||||
|
|
|
|||
5
test/support/websub_mock.ex
Normal file
5
test/support/websub_mock.ex
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
defmodule Pleroma.Web.WebsubMock do
|
||||
def verify(sub) do
|
||||
{:ok, sub}
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue