diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-10-06 14:25:20 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-10-06 14:25:20 -0500 |
commit | cddca85c8404272080caa661ce59ab5dbafec794 (patch) | |
tree | aac5b9fe51b26999e2e184ddfa2b4829f33794a5 /test/support/web_push_http_client_mock.ex | |
parent | ba7f9459b4798388eb4e441d096302c018354033 (diff) | |
parent | 2698bbc9f63d0bfd59de182d361db03d54aa2a68 (diff) | |
download | pleroma-cddca85c8404272080caa661ce59ab5dbafec794.tar.gz pleroma-cddca85c8404272080caa661ce59ab5dbafec794.zip |
Merge branch 'develop' into revert/rich-media-censorship
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 |