Add test for Plume Articles

This commit is contained in:
Haelwenn (lanodan) Monnier 2018-07-12 19:52:17 +02:00
commit 24b5a75d09
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
4 changed files with 27 additions and 0 deletions

View file

@ -736,6 +736,22 @@ defmodule HTTPoisonMock do
}}
end
def get("https://baptiste.gelez.xyz/~/PlumeDevelopment/this-month-in-plume-june-2018/", _, _) do
{:ok,
%Response{
status_code: 200,
body: File.read!("test/fixtures/httpoison_mock/baptiste.gelex.xyz-article.json")
}}
end
def get("https://baptiste.gelez.xyz/@/BaptisteGelez", _, _) do
{:ok,
%Response{
status_code: 200,
body: File.read!("test/fixtures/httpoison_mock/baptiste.gelex.xyz-user.json")
}}
end
def get(url, body, headers) do
{:error,
"Not implemented the mock response for get #{inspect(url)}, #{inspect(body)}, #{