diff options
author | kaniini <nenolod@gmail.com> | 2018-11-10 11:17:12 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2018-11-10 11:17:12 +0000 |
commit | 99a8ef967e875d66002cf7ba1e6c8d6c392f6288 (patch) | |
tree | a4bcb8e5deb046f79e404b14372721761c41f76b /test/support | |
parent | b4bd5e40e491c8b777c75ec4f096c0c466a6b4e2 (diff) | |
parent | 1d9fcbf2ba77030dd82b32b2666ddae59649661b (diff) | |
download | pleroma-99a8ef967e875d66002cf7ba1e6c8d6c392f6288.tar.gz |
Merge branch 'tests/prismo-url-map' into 'develop'
Test that prismo url-map transforms into a string
See merge request pleroma/pleroma!414
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{ |