diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-10-01 13:32:11 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-10-01 13:32:11 +0300 |
commit | cbdaabad345914e7424e614032056ff86e21142f (patch) | |
tree | 5b60cabc2c4c41ed8c956aa2202cf0ee71706caa /test/support/web_push_http_client_mock.ex | |
parent | 34029ffb90175e9beb43bc20b76a8093971d8ca6 (diff) | |
download | pleroma-cbdaabad345914e7424e614032056ff86e21142f.tar.gz pleroma-cbdaabad345914e7424e614032056ff86e21142f.zip |
web push http_client fix
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 |