diff options
author | lain <lain@soykaf.club> | 2018-02-20 18:42:41 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-02-20 18:42:41 +0100 |
commit | 95f7e7e2d5d70e8fc28cd5d8819460a1c6f95821 (patch) | |
tree | bdd1b49ae31056bb96caee010c2f523b27893f0d /test/support | |
parent | 486e2058103fe02832dfb869d5725f643f8fca26 (diff) | |
download | pleroma-95f7e7e2d5d70e8fc28cd5d8819460a1c6f95821.tar.gz |
Add some more tests.
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/httpoison_mock.ex | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/support/httpoison_mock.ex b/test/support/httpoison_mock.ex index 2b47b9b70..b8f2422f6 100644 --- a/test/support/httpoison_mock.ex +++ b/test/support/httpoison_mock.ex @@ -373,6 +373,20 @@ defmodule HTTPoisonMock do }} end + def get("https://masto.quad.moe/users/_HellPie", ["Accept": "application/activity+json"], _) do + {:ok, %Response{ + status_code: 200, + body: File.read!("test/fixtures/httpoison_mock/hellpie.json") + }} + end + + def get("https://niu.moe/users/rye", ["Accept": "application/activity+json"], _) do + {:ok, %Response{ + status_code: 200, + body: File.read!("test/fixtures/httpoison_mock/rye.json") + }} + end + def get("http://mastodon.example.org/@admin/99541947525187367", ["Accept": "application/activity+json"], _) do {:ok, %Response{ status_code: 200, |