summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkaniini <nenolod@gmail.com>2019-03-18 23:08:31 +0000
committerkaniini <nenolod@gmail.com>2019-03-18 23:08:31 +0000
commit43bd7f47db7f2a31c59ec3f48cf22a51847ae241 (patch)
tree12516016c66748e060768b3dc34482205baf5246 /test
parenta5675c965ab35c41ff339f38e843f5a1c0472075 (diff)
parent22ca1d1dfee4ea8624222560f1008ea84879f94a (diff)
downloadpleroma-43bd7f47db7f2a31c59ec3f48cf22a51847ae241.tar.gz
pleroma-43bd7f47db7f2a31c59ec3f48cf22a51847ae241.zip
Merge branch 'feature/order-users-by-nickname-admin-api' into 'develop'
Order users by nickname See merge request pleroma/pleroma!945
Diffstat (limited to 'test')
-rw-r--r--test/upload_test.exs3
-rw-r--r--test/web/admin_api/admin_api_controller_test.exs16
2 files changed, 9 insertions, 10 deletions
diff --git a/test/upload_test.exs b/test/upload_test.exs
index 770226478..bdda01b3f 100644
--- a/test/upload_test.exs
+++ b/test/upload_test.exs
@@ -150,8 +150,7 @@ defmodule Pleroma.UploadTest do
{:ok, data} = Upload.store(file)
[attachment_url | _] = data["url"]
- assert Path.basename(attachment_url["href"]) ==
- "an%E2%80%A6%20image.jpg"
+ assert Path.basename(attachment_url["href"]) == "an%E2%80%A6%20image.jpg"
end
test "escapes reserved uri characters" do
diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs
index e50f0edde..0aab7f262 100644
--- a/test/web/admin_api/admin_api_controller_test.exs
+++ b/test/web/admin_api/admin_api_controller_test.exs
@@ -495,20 +495,20 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
"page_size" => 50,
"users" => [
%{
- "deactivated" => admin.info.deactivated,
- "id" => admin.id,
- "nickname" => admin.nickname,
- "roles" => %{"admin" => true, "moderator" => false},
- "local" => true,
- "tags" => []
- },
- %{
"deactivated" => user.info.deactivated,
"id" => user.id,
"nickname" => user.nickname,
"roles" => %{"admin" => false, "moderator" => false},
"local" => true,
"tags" => []
+ },
+ %{
+ "deactivated" => admin.info.deactivated,
+ "id" => admin.id,
+ "nickname" => admin.nickname,
+ "roles" => %{"admin" => true, "moderator" => false},
+ "local" => true,
+ "tags" => []
}
]
}