projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'pleroma/develop' into feature/disable-account
[akkoma]
/
test
/
web
/
ostatus
/
incoming_documents
/
delete_handling_test.exs
diff --git
a/test/web/ostatus/incoming_documents/delete_handling_test.exs
b/test/web/ostatus/incoming_documents/delete_handling_test.exs
index d97cd79f4df10773e071bb6635887378ccc9c636..ca6e6133952b36d1ba0c3f366d05487733087bf2 100644
(file)
--- a/
test/web/ostatus/incoming_documents/delete_handling_test.exs
+++ b/
test/web/ostatus/incoming_documents/delete_handling_test.exs
@@
-4,7
+4,8
@@
defmodule Pleroma.Web.OStatus.DeleteHandlingTest do
import Pleroma.Factory
import Tesla.Mock
import Pleroma.Factory
import Tesla.Mock
- alias Pleroma.{Repo, Activity, Object}
+ alias Pleroma.Activity
+ alias Pleroma.Object
alias Pleroma.Web.OStatus
setup do
alias Pleroma.Web.OStatus
setup do
@@
-30,10
+31,10
@@
defmodule Pleroma.Web.OStatus.DeleteHandlingTest do
{:ok, [delete]} = OStatus.handle_incoming(incoming)
{:ok, [delete]} = OStatus.handle_incoming(incoming)
- refute
Repo.get(Activity,
note.id)
- refute
Repo.get(Activity,
like.id)
+ refute
Activity.get_by_id(
note.id)
+ refute
Activity.get_by_id(
like.id)
assert Object.get_by_ap_id(note.data["object"]["id"]).data["type"] == "Tombstone"
assert Object.get_by_ap_id(note.data["object"]["id"]).data["type"] == "Tombstone"
- assert
Repo.get(Activity,
second_note.id)
+ assert
Activity.get_by_id(
second_note.id)
assert Object.get_by_ap_id(second_note.data["object"]["id"])
assert delete.data["type"] == "Delete"
assert Object.get_by_ap_id(second_note.data["object"]["id"])
assert delete.data["type"] == "Delete"