diff options
author | lain <lain@soykaf.club> | 2020-10-01 11:15:13 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-10-01 11:15:13 +0000 |
commit | 241f7cb1ed91a8d6855dbd03517e85c98c08edb7 (patch) | |
tree | 5b60cabc2c4c41ed8c956aa2202cf0ee71706caa /test/support/web_push_http_client_mock.ex | |
parent | 34029ffb90175e9beb43bc20b76a8093971d8ca6 (diff) | |
parent | cbdaabad345914e7424e614032056ff86e21142f (diff) | |
download | pleroma-241f7cb1ed91a8d6855dbd03517e85c98c08edb7.tar.gz pleroma-241f7cb1ed91a8d6855dbd03517e85c98c08edb7.zip |
Merge branch 'web-push-fix' into 'develop'
web push http_client fix
Closes #2202
See merge request pleroma/pleroma!3052
Diffstat (limited to 'test/support/web_push_http_client_mock.ex')
-rw-r--r-- | test/support/web_push_http_client_mock.ex | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/test/support/web_push_http_client_mock.ex b/test/support/web_push_http_client_mock.ex deleted file mode 100644 index 3cd12957d..000000000 --- a/test/support/web_push_http_client_mock.ex +++ /dev/null @@ -1,23 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/> -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule Pleroma.Web.WebPushHttpClientMock do - def get(url, headers \\ [], options \\ []) do - { - res, - %Tesla.Env{status: status} - } = Pleroma.HTTP.request(:get, url, "", headers, options) - - {res, %{status_code: status}} - end - - def post(url, body, headers \\ [], options \\ []) do - { - res, - %Tesla.Env{status: status} - } = Pleroma.HTTP.request(:post, url, body, headers, options) - - {res, %{status_code: status}} - end -end |