Make credo happy
This commit is contained in:
parent
e641651e2b
commit
ad681877df
9 changed files with 19 additions and 14 deletions
|
|
@ -5,9 +5,15 @@
|
|||
defmodule Pleroma.ObjectTest do
|
||||
use Pleroma.DataCase
|
||||
import Pleroma.Factory
|
||||
import Tesla.Mock
|
||||
alias Pleroma.Object
|
||||
alias Pleroma.Repo
|
||||
|
||||
setup do
|
||||
mock(fn env -> apply(HttpRequestMock, :request, [env]) end)
|
||||
:ok
|
||||
end
|
||||
|
||||
test "returns an object by it's AP id" do
|
||||
object = insert(:note)
|
||||
found_object = Object.get_by_ap_id(object.data["id"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue