summaryrefslogtreecommitdiff
path: root/test/support/http_request_mock.ex
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-09-02 09:16:51 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-09-02 09:16:51 +0300
commit79f65b4374908a32ebf39db176a30a01152a9141 (patch)
tree257910dc25d20f8878e9e997d30ffeafc74f2fec /test/support/http_request_mock.ex
parent5e8adf91b46c3f23ec423d53afccbb062df4a241 (diff)
downloadpleroma-79f65b4374908a32ebf39db176a30a01152a9141.tar.gz
pleroma-79f65b4374908a32ebf39db176a30a01152a9141.zip
correct pool and uniform headers format
Diffstat (limited to 'test/support/http_request_mock.ex')
-rw-r--r--test/support/http_request_mock.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex
index eeeba7880..a0ebf65d9 100644
--- a/test/support/http_request_mock.ex
+++ b/test/support/http_request_mock.ex
@@ -1350,11 +1350,11 @@ defmodule HttpRequestMock do
{:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/relay/relay.json")}}
end
- def get("http://localhost:4001/", _, "", Accept: "text/html") do
+ def get("http://localhost:4001/", _, "", [{"accept", "text/html"}]) do
{:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/tesla_mock/7369654.html")}}
end
- def get("https://osada.macgirvin.com/", _, "", Accept: "text/html") do
+ def get("https://osada.macgirvin.com/", _, "", [{"accept", "text/html"}]) do
{:ok,
%Tesla.Env{
status: 200,