fetcher_test: Remove assert on fake Create having an ap_id
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Thu, 25 Mar 2021 09:17:26 +0000 (10:17 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Mon, 5 Apr 2021 17:19:12 +0000 (19:19 +0200)
test/pleroma/object/fetcher_test.exs

index 8d9c6c3cb7cfc75f93aa739b1e3c262802fa542c..bd0a6e497617bad3933654326b0017116d3edac7 100644 (file)
@@ -132,8 +132,7 @@ defmodule Pleroma.Object.FetcherTest do
       {:ok, object} =
         Fetcher.fetch_object_from_id("http://mastodon.example.org/@admin/99541947525187367")
 
-      assert activity = Activity.get_create_by_object_ap_id(object.data["id"])
-      assert activity.data["id"]
+      assert _activity = Activity.get_create_by_object_ap_id(object.data["id"])
 
       {:ok, object_again} =
         Fetcher.fetch_object_from_id("http://mastodon.example.org/@admin/99541947525187367")