diff options
author | Maksim <parallel588@gmail.com> | 2019-07-31 15:14:36 +0000 |
---|---|---|
committer | kaniini <ariadne@dereferenced.org> | 2019-07-31 15:14:36 +0000 |
commit | 58443d0cd683c227199eb34d660191292e487a14 (patch) | |
tree | 15229eb33f2738491dbcd4153b36a98e992fb005 /test/support/http_request_mock.ex | |
parent | 373a7c673983189539e39679cab50ae7869d2c4c (diff) | |
download | pleroma-58443d0cd683c227199eb34d660191292e487a14.tar.gz pleroma-58443d0cd683c227199eb34d660191292e487a14.zip |
tests for TwitterApi/UtilController
Diffstat (limited to 'test/support/http_request_mock.ex')
-rw-r--r-- | test/support/http_request_mock.ex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 2ed5f5042..d767ab9d4 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -51,6 +51,10 @@ defmodule HttpRequestMock do }} end + def get("https://mastodon.social/users/not_found", _, _, _) do + {:ok, %Tesla.Env{status: 404}} + end + def get("https://mastodon.sdf.org/users/rinpatch", _, _, _) do {:ok, %Tesla.Env{ |