From: rinpatch Date: Tue, 6 Aug 2019 21:58:48 +0000 (+0300) Subject: OStatus tests: stop relying on embedded objects X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5329e84d62bbdf87a4b66e2ba9302a840802416f;p=akkoma OStatus tests: stop relying on embedded objects --- diff --git a/test/web/ostatus/ostatus_test.exs b/test/web/ostatus/ostatus_test.exs index f8d389020..803a97695 100644 --- a/test/web/ostatus/ostatus_test.exs +++ b/test/web/ostatus/ostatus_test.exs @@ -199,7 +199,7 @@ defmodule Pleroma.Web.OStatusTest do assert retweeted_activity.data["type"] == "Create" assert retweeted_activity.data["actor"] == user.ap_id assert retweeted_activity.local - assert retweeted_activity.data["object"]["announcement_count"] == 1 + assert Object.normalize(retweeted_activity).data["announcement_count"] == 1 end test "handle incoming retweets - Mastodon, salmon" do