Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F8613668
scheduled_activity_worker_test.exs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
765 B
Referenced Files
None
Subscribers
None
scheduled_activity_worker_test.exs
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.ScheduledActivityWorkerTest
do
use
Pleroma.DataCase
alias
Pleroma.ScheduledActivity
import
Pleroma.Factory
test
"creates a status from the scheduled activity"
do
user
=
insert
(
:user
)
scheduled_activity
=
insert
(
:scheduled_activity
,
user
:
user
,
params
:
%{
status
:
"hi"
})
Pleroma.ScheduledActivityWorker
.
perform
(
:execute
,
scheduled_activity
.
id
)
refute
Repo
.
get
(
ScheduledActivity
,
scheduled_activity
.
id
)
activity
=
Repo
.
all
(
Pleroma.Activity
)
|>
Enum
.
find
(
&
(
&1
.
actor
==
user
.
ap_id
))
assert
Pleroma.Object
.
normalize
(
activity
)
.
data
[
"content"
]
==
"hi"
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 25, 6:10 PM (17 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
541527
Default Alt Text
scheduled_activity_worker_test.exs (765 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment