Add test when local is false
authorMaxim Filippov <colixer@gmail.com>
Wed, 13 Mar 2019 14:56:15 +0000 (17:56 +0300)
committerMaxim Filippov <colixer@gmail.com>
Wed, 13 Mar 2019 14:56:15 +0000 (17:56 +0300)
test/web/admin_api/admin_api_controller_test.exs

index 96cb95da646a93172d1f20f4d6af2cb8b383550c..555272d05a17479a7b231948c6486da735b5fc60 100644 (file)
@@ -334,7 +334,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
   describe "GET /api/pleroma/admin/users" do
     test "renders users array for the first page" do
       admin = insert(:user, info: %{is_admin: true})
-      user = insert(:user)
+      user = insert(:user, local: false)
 
       conn =
         build_conn()
@@ -357,7 +357,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
                    "id" => user.id,
                    "nickname" => user.nickname,
                    "roles" => %{"admin" => false, "moderator" => false},
-                   "local" => true
+                   "local" => false
                  }
                ]
              }