projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
203d61b
)
CommonAPI tests: Capture logs.
author
lain
<lain@soykaf.club>
Fri, 18 Oct 2019 10:11:25 +0000
(12:11 +0200)
committer
lain
<lain@soykaf.club>
Fri, 18 Oct 2019 10:11:25 +0000
(12:11 +0200)
test/web/common_api/common_api_test.exs
patch
|
blob
|
history
diff --git
a/test/web/common_api/common_api_test.exs
b/test/web/common_api/common_api_test.exs
index d46a361c5110ec273a7e29d8d6f8a36e051642f7..63d7ea79fa9fd6e1f5621cfa978d3835874e6872 100644
(file)
--- a/
test/web/common_api/common_api_test.exs
+++ b/
test/web/common_api/common_api_test.exs
@@
-13,6
+13,7
@@
defmodule Pleroma.Web.CommonAPITest do
alias Pleroma.Web.CommonAPI
import Pleroma.Factory
+ import ExUnit.CaptureLog
require Pleroma.Constants
@@
-274,7
+275,9
@@
defmodule Pleroma.Web.CommonAPITest do
{:ok, activity} = CommonAPI.post(other_user, %{"status" => "cofe"})
{:ok, %Activity{}} = CommonAPI.favorite(user, activity.id)
- {:error, _} = CommonAPI.favorite(user, activity.id)
+ assert capture_log(fn ->
+ assert {:error, _} = CommonAPI.favorite(user, activity.id)
+ end) =~ "[error]"
end
end