logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

app_view_test.exs (560B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Web.PleromaAPI.AppViewTest do
  5. use Pleroma.DataCase, async: true
  6. alias Pleroma.Web.PleromaAPI.AppView
  7. import Pleroma.Factory
  8. test "index.json" do
  9. apps = [
  10. insert(:oauth_app),
  11. insert(:oauth_app),
  12. insert(:oauth_app)
  13. ]
  14. results = AppView.render("index.json", %{apps: apps})
  15. assert [%{client_id: _, client_secret: _}, _, _] = results
  16. end
  17. end