ActivityPub tests: remove assertions of embedded object being updated,
authorrinpatch <rinpatch@sdf.org>
Tue, 6 Aug 2019 21:36:13 +0000 (00:36 +0300)
committerrinpatch <rinpatch@sdf.org>
Tue, 6 Aug 2019 21:36:13 +0000 (00:36 +0300)
because the objects are no longer supposed to be embedded

test/web/activity_pub/activity_pub_test.exs

index 3d9a678dd0f380b6c7e92fe6b86dfc218b046237..d723f331f1f4f121b4c3f82adadb2d7408ddb835 100644 (file)
@@ -677,14 +677,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
       assert object.data["likes"] == [user.ap_id]
       assert object.data["like_count"] == 1
 
-      [note_activity] = Activity.get_all_create_by_object_ap_id(object.data["id"])
-      assert note_activity.data["object"]["like_count"] == 1
-
       {:ok, _like_activity, object} = ActivityPub.like(user_two, object)
       assert object.data["like_count"] == 2
-
-      [note_activity] = Activity.get_all_create_by_object_ap_id(object.data["id"])
-      assert note_activity.data["object"]["like_count"] == 2
     end
   end