diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2022-03-18 00:28:06 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2022-03-18 00:28:18 +0100 |
commit | 82d10aff678bd07247d1d373196e7dcacb31707a (patch) | |
tree | d31ad0b1872a78adfeb88a7a0057bf9a973b3c9e | |
parent | 75ab36c068e2adf84bd2b1c52ae1128885de1edc (diff) | |
download | pleroma-82d10aff678bd07247d1d373196e7dcacb31707a.tar.gz |
mock: GET https://404.site
-rw-r--r-- | test/support/http_request_mock.ex | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index ad4925a5c..3f2a2733d 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -1075,6 +1075,14 @@ defmodule HttpRequestMock do }} end + def get("https://404.site" <> _, _, _, _) do + {:ok, + %Tesla.Env{ + status: 404, + body: "" + }} + end + def get( "https://zetsubou.xn--q9jyb4c/.well-known/webfinger?resource=acct:lain@zetsubou.xn--q9jyb4c", _, |