Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pleroma
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jeff
pleroma
Commits
dda4e0e2
Commit
dda4e0e2
authored
5 years ago
by
rinpatch
Browse files
Options
Downloads
Patches
Plain Diff
Fix warnings in object tests
parent
627e5a0a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/object/containment_test.exs
+1
-2
1 addition, 2 deletions
test/object/containment_test.exs
test/object/fetcher_test.exs
+2
-3
2 additions, 3 deletions
test/object/fetcher_test.exs
with
3 additions
and
5 deletions
test/object/containment_test.exs
+
1
−
2
View file @
dda4e0e2
...
...
@@ -3,7 +3,6 @@ defmodule Pleroma.Object.ContainmentTest do
alias
Pleroma
.
User
alias
Pleroma
.
Object
.
Containment
alias
Pleroma
.
Web
.
ActivityPub
.
ActivityPub
import
Pleroma
.
Factory
...
...
@@ -45,7 +44,7 @@ defmodule Pleroma.Object.ContainmentTest do
end
test
"users cannot be collided through fake direction spoofing attempts"
do
user
=
_
user
=
insert
(
:user
,
%{
nickname:
"rye@niu.moe"
,
local:
false
,
...
...
This diff is collapsed.
Click to expand it.
test/object/fetcher_test.exs
+
2
−
3
View file @
dda4e0e2
defmodule
Pleroma
.
Object
.
FetcherTest
do
use
Pleroma
.
DataCase
alias
Pleroma
.
{
Activity
,
Object
}
alias
Pleroma
.
Activity
alias
Pleroma
.
Object
alias
Pleroma
.
Object
.
Fetcher
import
Pleroma
.
Factory
describe
"actor origin containment"
do
test
"it rejects objects with a bogus origin"
do
{
:error
,
_
}
=
Fetcher
.
fetch_object_from_id
(
"https://info.pleroma.site/activity.json"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment