Tests: Capture log.
This commit is contained in:
parent
4ec299ea9c
commit
15bbc34c07
2 changed files with 8 additions and 3 deletions
|
|
@ -275,9 +275,10 @@ defmodule Pleroma.Web.CommonAPITest do
|
|||
|
||||
{:ok, activity} = CommonAPI.post(other_user, %{"status" => "cofe"})
|
||||
{:ok, %Activity{}} = CommonAPI.favorite(user, activity.id)
|
||||
|
||||
assert capture_log(fn ->
|
||||
assert {:error, _} = CommonAPI.favorite(user, activity.id)
|
||||
end) =~ "[error]"
|
||||
assert {:error, _} = CommonAPI.favorite(user, activity.id)
|
||||
end) =~ "[error]"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue