projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add test to validate profile pagination works with keyset
[akkoma]
/
test
/
pleroma
/
web
/
activity_pub
/
visibility_test.exs
diff --git
a/test/pleroma/web/activity_pub/visibility_test.exs
b/test/pleroma/web/activity_pub/visibility_test.exs
index 8e9354c659b71091fbe4dad563c79e7d60c63864..1ec41aa1947c7073de5133a9a25f9d2573a13653 100644
(file)
--- a/
test/pleroma/web/activity_pub/visibility_test.exs
+++ b/
test/pleroma/web/activity_pub/visibility_test.exs
@@
-3,7
+3,7
@@
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.VisibilityTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.VisibilityTest do
- use Pleroma.DataCase
+ use Pleroma.DataCase
, async: true
alias Pleroma.Activity
alias Pleroma.Web.ActivityPub.Visibility
alias Pleroma.Activity
alias Pleroma.Web.ActivityPub.Visibility
@@
-15,7
+15,7
@@
defmodule Pleroma.Web.ActivityPub.VisibilityTest do
mentioned = insert(:user)
following = insert(:user)
unrelated = insert(:user)
mentioned = insert(:user)
following = insert(:user)
unrelated = insert(:user)
- {:ok, following} = Pleroma.User.follow(following, user)
+ {:ok, following
, user
} = Pleroma.User.follow(following, user)
{:ok, list} = Pleroma.List.create("foo", user)
Pleroma.List.follow(list, unrelated)
{:ok, list} = Pleroma.List.create("foo", user)
Pleroma.List.follow(list, unrelated)
@@
-159,7
+159,7
@@
defmodule Pleroma.Web.ActivityPub.VisibilityTest do
user: user
} do
Repo.delete(user)
user: user
} do
Repo.delete(user)
-
Cachex.clear(:user_cache
)
+
Pleroma.User.invalidate_cache(user
)
refute Visibility.is_private?(direct)
end
refute Visibility.is_private?(direct)
end