diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-03-02 05:38:25 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-07-08 06:28:39 +0200 |
commit | 6a679d80c9030afa8327377928f8ac2fcf1a4a0e (patch) | |
tree | a4f45718dfe570f064966ad3ed8ec603a6d77ff4 /test/support/http_request_mock.ex | |
parent | f6d09fafee83514889bbcf6531e0bc01e33b0b16 (diff) | |
download | pleroma-6a679d80c9030afa8327377928f8ac2fcf1a4a0e.tar.gz pleroma-6a679d80c9030afa8327377928f8ac2fcf1a4a0e.zip |
Move get_favicon to Pleroma.Instances, use /
Diffstat (limited to 'test/support/http_request_mock.ex')
-rw-r--r-- | test/support/http_request_mock.ex | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 4d33c6250..19a202654 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -1342,10 +1342,18 @@ defmodule HttpRequestMock do {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/relay/relay.json")}} end - def get("http://localhost:4001/users/" <> _, _, _, _) do + def get("http://localhost:4001/", _, "", Accept: "text/html") do {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/tesla_mock/7369654.html")}} end + def get("https://osada.macgirvin.com/", _, "", Accept: "text/html") do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/tesla_mock/https___osada.macgirvin.com.html") + }} + end + def get(url, query, body, headers) do {:error, "Mock response not implemented for GET #{inspect(url)}, #{query}, #{inspect(body)}, #{ |