projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Credo fixes.
[akkoma]
/
test
/
web
/
admin_api
/
search_test.exs
diff --git
a/test/web/admin_api/search_test.exs
b/test/web/admin_api/search_test.exs
index 501a8d007d1e1b7895121710e297bb00578462ac..e0e3d4153895d04966665674916682b4de522154 100644
(file)
--- a/
test/web/admin_api/search_test.exs
+++ b/
test/web/admin_api/search_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
18
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.AdminAPI.SearchTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.AdminAPI.SearchTest do
@@
-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,
info: %{deactivated: true}
)
- insert(:user,
info: %{deactivated: true}
)
- insert(:user,
info: %{deactivated: false}
)
+ insert(:user,
deactivated: true
)
+ insert(:user,
deactivated: true
)
+ insert(:user,
deactivated: false
)
{: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,
info: %{deactivated: false}
)
+ user = insert(:user, nickname: "bob", local: true,
deactivated: false
)
{:ok, _results, total_count} = Search.user(%{query: ""})
{:ok, _results, total_count} = Search.user(%{query: ""})
@@
-108,7
+108,7
@@
defmodule Pleroma.Web.AdminAPI.SearchTest do
end
test "it returns admin user" do
end
test "it returns admin user" do
- admin = insert(:user, i
nfo: %{is_admin: true}
)
+ admin = insert(:user, i
s_admin: true
)
insert(:user)
insert(:user)
insert(:user)
insert(:user)
@@
-119,7
+119,7
@@
defmodule Pleroma.Web.AdminAPI.SearchTest do
end
test "it returns moderator user" do
end
test "it returns moderator user" do
- moderator = insert(:user, i
nfo: %{is_moderator: true}
)
+ moderator = insert(:user, i
s_moderator: true
)
insert(:user)
insert(:user)
insert(:user)
insert(:user)