Browse Source

HttpRequestMock: Improve non-implemented error message

tags/v1.1.4
Haelwenn (lanodan) Monnier 4 years ago
parent
commit
e22737ffb5
No known key found for this signature in database GPG Key ID: D5B7A8E43C997DEE
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      test/support/http_request_mock.ex

+ 6
- 3
test/support/http_request_mock.ex View File

@@ -975,7 +975,7 @@ defmodule HttpRequestMock do

def get(url, query, body, headers) do
{:error,
"Not implemented the mock response for get #{inspect(url)}, #{query}, #{inspect(body)}, #{
"Mock response not implemented for GET #{inspect(url)}, #{query}, #{inspect(body)}, #{
inspect(headers)
}"}
end
@@ -1037,7 +1037,10 @@ defmodule HttpRequestMock do
}}
end

def post(url, _query, _body, _headers) do
{:error, "Not implemented the mock response for post #{inspect(url)}"}
def post(url, query, body, headers) do
{:error,
"Mock response not implemented for POST #{inspect(url)}, #{query}, #{inspect(body)}, #{
inspect(headers)
}"}
end
end

Loading…
Cancel
Save