Add support for remote favicons

This commit is contained in:
Haelwenn (lanodan) Monnier 2020-03-01 09:48:32 +01:00
commit f6d09fafee
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
4 changed files with 38 additions and 1 deletions

View file

@ -1342,6 +1342,10 @@ defmodule HttpRequestMock do
{:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/relay/relay.json")}}
end
def get("http://localhost:4001/users/" <> _, _, _, _) do
{:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/tesla_mock/7369654.html")}}
end
def get(url, query, body, headers) do
{:error,
"Mock response not implemented for GET #{inspect(url)}, #{query}, #{inspect(body)}, #{