aboutsummaryrefslogtreecommitdiff
path: root/test/pleroma/object/fetcher_test.exs
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2021-06-01 15:55:05 -0500
committerAlex Gleason <alex@alexgleason.me>2021-06-01 15:55:05 -0500
commit9d89e1736a08d6c559355e52a996782994608cd4 (patch)
treecf34422a48ea0e6cad4299db7816b094512416fe /test/pleroma/object/fetcher_test.exs
parent9166ae1bcf8a8ec113bb21aab7effca5a14601ca (diff)
parent3fe6ada6fc6f42057cb346c04e4ecc9f35c0e5cb (diff)
downloadpleroma-cycles-config-url.tar.gz
Merge remote-tracking branch 'pleroma/develop' into cycles-config-urlcycles-config-url
Diffstat (limited to 'test/pleroma/object/fetcher_test.exs')
-rw-r--r--test/pleroma/object/fetcher_test.exs11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/pleroma/object/fetcher_test.exs b/test/pleroma/object/fetcher_test.exs
index a7ac90348..bd0a6e497 100644
--- a/test/pleroma/object/fetcher_test.exs
+++ b/test/pleroma/object/fetcher_test.exs
@@ -66,6 +66,14 @@ defmodule Pleroma.Object.FetcherTest do
%Tesla.Env{
status: 500
}
+
+ %{
+ method: :get,
+ url: "https://stereophonic.space/objects/02997b83-3ea7-4b63-94af-ef3aa2d4ed17"
+ } ->
+ %Tesla.Env{
+ status: 500
+ }
end)
:ok
@@ -124,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")