projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Additional validation so we don't get caught off guard with a nil response
[akkoma]
/
test
/
pleroma
/
web
/
admin_api
/
search_test.exs
diff --git
a/test/pleroma/web/admin_api/search_test.exs
b/test/pleroma/web/admin_api/search_test.exs
index 10ec227d68984a810657da23eb6ebcf8c5179b70..b8eeec65b6de8eeb54d5965da3b68c88e379b2a6 100644
(file)
--- a/
test/pleroma/web/admin_api/search_test.exs
+++ b/
test/pleroma/web/admin_api/search_test.exs
@@
-47,9
+47,9
@@
defmodule Pleroma.Web.AdminAPI.SearchTest do
end
test "it returns active/deactivated users" do
end
test "it returns active/deactivated users" do
- insert(:user,
deactivated: tru
e)
- insert(:user,
deactivated: tru
e)
- insert(:user,
deactivated: fals
e)
+ insert(:user,
is_active: fals
e)
+ insert(:user,
is_active: fals
e)
+ insert(:user,
is_active: tru
e)
{:ok, _results, active_count} =
Search.user(%{
{:ok, _results, active_count} =
Search.user(%{
@@
-70,7
+70,7
@@
defmodule Pleroma.Web.AdminAPI.SearchTest do
test "it returns specific user" do
insert(:user)
insert(:user)
test "it returns specific user" do
insert(:user)
insert(:user)
- user = insert(:user, nickname: "bob", local: true,
deactivated: fals
e)
+ user = insert(:user, nickname: "bob", local: true,
is_active: tru
e)
{:ok, _results, total_count} = Search.user(%{query: ""})
{:ok, _results, total_count} = Search.user(%{query: ""})
@@
-193,7
+193,7
@@
defmodule Pleroma.Web.AdminAPI.SearchTest do
end
test "it returns unconfirmed user" do
end
test "it returns unconfirmed user" do
- unconfirmed = insert(:user,
confirmation_pending: tru
e)
+ unconfirmed = insert(:user,
is_confirmed: fals
e)
insert(:user)
insert(:user)
insert(:user)
insert(:user)