From 8f0778166c2e7c76975d14937ef61c05d399b560 Mon Sep 17 00:00:00 2001 From: Alexander Strizhakov Date: Tue, 9 Mar 2021 09:00:20 +0300 Subject: moving fixture into mastodon folder --- test/fixtures/collections/featured.json | 39 ---------------------- test/fixtures/mastodon/collections/featured.json | 39 ++++++++++++++++++++++ .../pleroma/web/activity_pub/activity_pub_test.exs | 2 +- 3 files changed, 40 insertions(+), 40 deletions(-) delete mode 100644 test/fixtures/collections/featured.json create mode 100644 test/fixtures/mastodon/collections/featured.json diff --git a/test/fixtures/collections/featured.json b/test/fixtures/collections/featured.json deleted file mode 100644 index 56f8f56fa..000000000 --- a/test/fixtures/collections/featured.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "@context": [ - "https://www.w3.org/ns/activitystreams", - "https://{{domain}}/schemas/litepub-0.1.jsonld", - { - "@language": "und" - } - ], - "id": "https://{{domain}}/users/{{nickname}}/collections/featured", - "orderedItems": [ - { - "@context": [ - "https://www.w3.org/ns/activitystreams", - "https://{{domain}}/schemas/litepub-0.1.jsonld", - { - "@language": "und" - } - ], - "actor": "https://{{domain}}/users/{{nickname}}", - "attachment": [], - "attributedTo": "https://{{domain}}/users/{{nickname}}", - "cc": [ - "https://{{domain}}/users/{{nickname}}/followers" - ], - "content": "", - "id": "https://{{domain}}/objects/{{object_id}}", - "published": "2021-02-12T15:13:43.915429Z", - "sensitive": false, - "source": "", - "summary": "", - "tag": [], - "to": [ - "https://www.w3.org/ns/activitystreams#Public" - ], - "type": "Note" - } - ], - "type": "OrderedCollection" -} diff --git a/test/fixtures/mastodon/collections/featured.json b/test/fixtures/mastodon/collections/featured.json new file mode 100644 index 000000000..56f8f56fa --- /dev/null +++ b/test/fixtures/mastodon/collections/featured.json @@ -0,0 +1,39 @@ +{ + "@context": [ + "https://www.w3.org/ns/activitystreams", + "https://{{domain}}/schemas/litepub-0.1.jsonld", + { + "@language": "und" + } + ], + "id": "https://{{domain}}/users/{{nickname}}/collections/featured", + "orderedItems": [ + { + "@context": [ + "https://www.w3.org/ns/activitystreams", + "https://{{domain}}/schemas/litepub-0.1.jsonld", + { + "@language": "und" + } + ], + "actor": "https://{{domain}}/users/{{nickname}}", + "attachment": [], + "attributedTo": "https://{{domain}}/users/{{nickname}}", + "cc": [ + "https://{{domain}}/users/{{nickname}}/followers" + ], + "content": "", + "id": "https://{{domain}}/objects/{{object_id}}", + "published": "2021-02-12T15:13:43.915429Z", + "sensitive": false, + "source": "", + "summary": "", + "tag": [], + "to": [ + "https://www.w3.org/ns/activitystreams#Public" + ], + "type": "Note" + } + ], + "type": "OrderedCollection" +} diff --git a/test/pleroma/web/activity_pub/activity_pub_test.exs b/test/pleroma/web/activity_pub/activity_pub_test.exs index 081d00d45..64e12066e 100644 --- a/test/pleroma/web/activity_pub/activity_pub_test.exs +++ b/test/pleroma/web/activity_pub/activity_pub_test.exs @@ -252,7 +252,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do object_id = Ecto.UUID.generate() featured_data = - "test/fixtures/collections/featured.json" + "test/fixtures/mastodon/collections/featured.json" |> File.read!() |> String.replace("{{domain}}", "example.com") |> String.replace("{{nickname}}", "lain") -- cgit v1.2.3