Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F21968449
app_view_test.exs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
560 B
Referenced Files
None
Subscribers
None
app_view_test.exs
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.Web.PleromaAPI.AppViewTest
do
use
Pleroma.DataCase
,
async
:
true
alias
Pleroma.Web.PleromaAPI.AppView
import
Pleroma.Factory
test
"index.json"
do
apps
=
[
insert
(
:oauth_app
),
insert
(
:oauth_app
),
insert
(
:oauth_app
)
]
results
=
AppView
.
render
(
"index.json"
,
%{
apps
:
apps
})
assert
[%{
client_id
:
_
,
client_secret
:
_
},
_
,
_
]
=
results
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 28, 3:24 AM (10 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
834228
Default Alt Text
app_view_test.exs (560 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment