Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7893180
report_note_test.exs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
497 B
Referenced Files
None
Subscribers
None
report_note_test.exs
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.ReportNoteTest
do
alias
Pleroma.ReportNote
use
Pleroma.DataCase
,
async
:
true
import
Pleroma.Factory
test
"create/3"
do
user
=
insert
(
:user
)
report
=
insert
(
:report_activity
)
assert
{
:ok
,
note
}
=
ReportNote
.
create
(
user
.
id
,
report
.
id
,
"naughty boy"
)
assert
note
.
content
==
"naughty boy"
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 2, 4:50 AM (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
487337
Default Alt Text
report_note_test.exs (497 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment