Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
pleroma
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
339
Issues
339
List
Boards
Labels
Milestones
Merge Requests
34
Merge Requests
34
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pleroma
pleroma
Commits
c4b468a9
Verified
Commit
c4b468a9
authored
Nov 28, 2019
by
minibikini
☕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup tests output
parent
ef1718a0
Pipeline
#20522
passed with stages
in 16 minutes and 13 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
test/web/activity_pub/transmogrifier_test.exs
test/web/activity_pub/transmogrifier_test.exs
+5
-0
test/web/admin_api/admin_api_controller_test.exs
test/web/admin_api/admin_api_controller_test.exs
+1
-0
test/web/streamer/streamer_test.exs
test/web/streamer/streamer_test.exs
+1
-1
No files found.
test/web/activity_pub/transmogrifier_test.exs
View file @
c4b468a9
...
...
@@ -39,6 +39,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
assert
activity
==
returned_activity
end
@tag
capture_log:
true
test
"it fetches replied-to activities if we don't have them"
do
data
=
File
.
read!
(
"test/fixtures/mastodon-post-activity.json"
)
...
...
@@ -533,6 +534,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
assert
object
.
data
[
"content"
]
==
"this is a private toot"
end
@tag
capture_log:
true
test
"it rejects incoming announces with an inlined activity from another origin"
do
data
=
File
.
read!
(
"test/fixtures/bogus-mastodon-announce.json"
)
...
...
@@ -814,6 +816,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
assert
Activity
.
get_by_id
(
activity
.
id
)
end
@tag
capture_log:
true
test
"it works for incoming user deletes"
do
%{
ap_id:
ap_id
}
=
insert
(
:user
,
ap_id:
"http://mastodon.example.org/users/admin"
)
...
...
@@ -1749,6 +1752,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
assert
modified_object
[
"inReplyToAtomUri"
]
==
""
end
@tag
capture_log:
true
test
"returns modified object when allowed incoming reply"
,
%{
data:
data
}
do
object_with_reply
=
Map
.
put
(
...
...
@@ -1868,6 +1872,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
end
)
=~
"Unsupported URI scheme"
end
@tag
capture_log:
true
test
"returns {:ok, %Object{}} for success case"
do
assert
{
:ok
,
%
Object
{}}
=
Transmogrifier
.
get_obj_helper
(
"https://shitposter.club/notice/2827873"
)
...
...
test/web/admin_api/admin_api_controller_test.exs
View file @
c4b468a9
...
...
@@ -1923,6 +1923,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
Pleroma
.
Config
.
put
([
:instance
,
:dynamic_configuration
],
true
)
end
@tag
capture_log:
true
test
"create new config setting in db"
,
%{
conn:
conn
}
do
conn
=
post
(
conn
,
"/api/pleroma/admin/config"
,
%{
...
...
test/web/streamer/streamer_test.exs
View file @
c4b468a9
...
...
@@ -15,7 +15,7 @@ defmodule Pleroma.Web.StreamerTest do
alias
Pleroma
.
Web
.
Streamer
.
StreamerSocket
alias
Pleroma
.
Web
.
Streamer
.
Worker
@moduletag
needs_streamer:
true
@moduletag
needs_streamer:
true
,
capture_log:
true
clear_config_all
([
:instance
,
:skip_thread_containment
])
describe
"user streams"
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment