diff options
author | Hakaba Hitoyo <hakabahitoyo@example.com> | 2018-11-15 14:04:09 +0900 |
---|---|---|
committer | Hakaba Hitoyo <hakabahitoyo@example.com> | 2018-11-15 14:04:09 +0900 |
commit | 5c8b8f6cb7212bd202924b535cd2a263416e78d4 (patch) | |
tree | 07ad2b2dd44189ae14a1ff44ff5a98013143866b /test/support | |
parent | 3484f687958f57ea5ce749135f78517ff12849d7 (diff) | |
parent | cc45797f4e1765f5123c058166f6032c6a6556a0 (diff) | |
download | pleroma-5c8b8f6cb7212bd202924b535cd2a263416e78d4.tar.gz pleroma-5c8b8f6cb7212bd202924b535cd2a263416e78d4.zip |
Merge remote-tracking branch 'official/develop' into develop
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/httpoison_mock.ex | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/support/httpoison_mock.ex b/test/support/httpoison_mock.ex index 75c78d70e..ab964334d 100644 --- a/test/support/httpoison_mock.ex +++ b/test/support/httpoison_mock.ex @@ -3,6 +3,14 @@ defmodule HTTPoisonMock do def get(url, body \\ [], headers \\ []) + def get("https://prismo.news/@mxb", _, _) do + {:ok, + %Response{ + status_code: 200, + body: File.read!("test/fixtures/httpoison_mock/https___prismo.news__mxb.json") + }} + end + def get("https://osada.macgirvin.com/channel/mike", _, _) do {:ok, %Response{ |