projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[#3213] ActivityPub: fixed subquery-based hashtags filtering implementation (addresse...
[akkoma]
/
test
/
pleroma
/
web
/
streamer_test.exs
diff --git
a/test/pleroma/web/streamer_test.exs
b/test/pleroma/web/streamer_test.exs
index 0402e59ea495f3756a8712b0ad0cc7f0ec6e7386..cef2b7629bf9ec8a7d8c369ef188861cb12ede37 100644
(file)
--- a/
test/pleroma/web/streamer_test.exs
+++ b/
test/pleroma/web/streamer_test.exs
@@
-510,7
+510,7
@@
defmodule Pleroma.Web.StreamerTest do
describe "thread_containment/2" do
test "it filters to user if recipients invalid and thread containment is enabled" do
describe "thread_containment/2" do
test "it filters to user if recipients invalid and thread containment is enabled" do
-
Pleroma.Config.put
([:instance, :skip_thread_containment], false)
+
clear_config
([:instance, :skip_thread_containment], false)
author = insert(:user)
%{user: user, token: oauth_token} = oauth_access(["read"])
User.follow(user, author, :follow_accept)
author = insert(:user)
%{user: user, token: oauth_token} = oauth_access(["read"])
User.follow(user, author, :follow_accept)
@@
-531,7
+531,7
@@
defmodule Pleroma.Web.StreamerTest do
end
test "it sends message if recipients invalid and thread containment is disabled" do
end
test "it sends message if recipients invalid and thread containment is disabled" do
-
Pleroma.Config.put
([:instance, :skip_thread_containment], true)
+
clear_config
([:instance, :skip_thread_containment], true)
author = insert(:user)
%{user: user, token: oauth_token} = oauth_access(["read"])
User.follow(user, author, :follow_accept)
author = insert(:user)
%{user: user, token: oauth_token} = oauth_access(["read"])
User.follow(user, author, :follow_accept)
@@
-553,7
+553,7
@@
defmodule Pleroma.Web.StreamerTest do
end
test "it sends message if recipients invalid and thread containment is enabled but user's thread containment is disabled" do
end
test "it sends message if recipients invalid and thread containment is enabled but user's thread containment is disabled" do
-
Pleroma.Config.put
([:instance, :skip_thread_containment], false)
+
clear_config
([:instance, :skip_thread_containment], false)
author = insert(:user)
user = insert(:user, skip_thread_containment: true)
%{token: oauth_token} = oauth_access(["read"], user: user)
author = insert(:user)
user = insert(:user, skip_thread_containment: true)
%{token: oauth_token} = oauth_access(["read"], user: user)