summaryrefslogtreecommitdiff
path: root/test/http/adapter_helper/hackney_test.exs
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2020-10-13 19:22:32 -0500
committerAlex Gleason <alex@alexgleason.me>2020-10-13 19:22:32 -0500
commitb3d6cf90229ff3e9a5bd0028d4a6cbd3b68da9fe (patch)
tree09f6b8bafcfb784c581800887d80a22d0461af0b /test/http/adapter_helper/hackney_test.exs
parent5c8d2c468c3a14cde029e7aeedd0cdb580cce1df (diff)
parent481906207e6d803e5c4d3e455c7b93119e392177 (diff)
downloadpleroma-b3d6cf90229ff3e9a5bd0028d4a6cbd3b68da9fe.tar.gz
pleroma-b3d6cf90229ff3e9a5bd0028d4a6cbd3b68da9fe.zip
Merge remote-tracking branch 'upstream/develop' into block-behavior
Diffstat (limited to 'test/http/adapter_helper/hackney_test.exs')
-rw-r--r--test/http/adapter_helper/hackney_test.exs35
1 files changed, 0 insertions, 35 deletions
diff --git a/test/http/adapter_helper/hackney_test.exs b/test/http/adapter_helper/hackney_test.exs
deleted file mode 100644
index f2361ff0b..000000000
--- a/test/http/adapter_helper/hackney_test.exs
+++ /dev/null
@@ -1,35 +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.HTTP.AdapterHelper.HackneyTest do
- use ExUnit.Case, async: true
- use Pleroma.Tests.Helpers
-
- alias Pleroma.HTTP.AdapterHelper.Hackney
-
- setup_all do
- uri = URI.parse("http://domain.com")
- {:ok, uri: uri}
- end
-
- describe "options/2" do
- setup do: clear_config([:http, :adapter], a: 1, b: 2)
-
- test "add proxy and opts from config", %{uri: uri} do
- opts = Hackney.options([proxy: "localhost:8123"], uri)
-
- assert opts[:a] == 1
- assert opts[:b] == 2
- assert opts[:proxy] == "localhost:8123"
- end
-
- test "respect connection opts and no proxy", %{uri: uri} do
- opts = Hackney.options([a: 2, b: 1], uri)
-
- assert opts[:a] == 2
- assert opts[:b] == 1
- refute Keyword.has_key?(opts, :proxy)
- end
- end
-end