summaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2023-11-12 13:53:18 +0400
committerLain Soykaf <lain@lain.com>2023-11-12 13:53:18 +0400
commit0c5cc519833166e1c748deb81394af9940c05928 (patch)
tree4eb13f297395d738df1054c82a744b3ae99479e0 /test/support
parent398141da68328cea982f017a3e8bc95a9f9c1fbf (diff)
parenta51f3937eef0c6add91234863d5f936c59830d88 (diff)
downloadpleroma-0c5cc519833166e1c748deb81394af9940c05928.tar.gz
pleroma-0c5cc519833166e1c748deb81394af9940c05928.zip
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into pleroma-meilisearch
Diffstat (limited to 'test/support')
-rw-r--r--test/support/factory.ex1
-rw-r--r--test/support/http_request_mock.ex18
2 files changed, 18 insertions, 1 deletions
diff --git a/test/support/factory.ex b/test/support/factory.ex
index 09f02458c..d94544717 100644
--- a/test/support/factory.ex
+++ b/test/support/factory.ex
@@ -50,7 +50,6 @@ defmodule Pleroma.Factory do
last_refreshed_at: NaiveDateTime.utc_now(),
notification_settings: %Pleroma.User.NotificationSetting{},
multi_factor_authentication_settings: %Pleroma.MFA.Settings{},
- ap_enabled: true,
keys: pem
}
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex
index b0cf613ac..78a367024 100644
--- a/test/support/http_request_mock.ex
+++ b/test/support/http_request_mock.ex
@@ -1380,6 +1380,15 @@ defmodule HttpRequestMock do
}}
end
+ def get("https://misskey.io/users/83ssedkv53", _, _, _) do
+ {:ok,
+ %Tesla.Env{
+ status: 200,
+ body: File.read!("test/fixtures/tesla_mock/aimu@misskey.io.json"),
+ headers: activitypub_object_headers()
+ }}
+ end
+
def get("https://gleasonator.com/users/macgirvin", _, _, _) do
{:ok,
%Tesla.Env{
@@ -1446,6 +1455,15 @@ defmodule HttpRequestMock do
}}
end
+ def get("https://misskey.io/notes/8vs6wxufd0", _, _, _) do
+ {:ok,
+ %Tesla.Env{
+ status: 200,
+ body: File.read!("test/fixtures/tesla_mock/misskey.io_8vs6wxufd0.json"),
+ headers: activitypub_object_headers()
+ }}
+ end
+
def get(url, query, body, headers) do
{:error,
"Mock response not implemented for GET #{inspect(url)}, #{query}, #{inspect(body)}, #{inspect(headers)}"}