tests for TwitterApi/UtilController

This commit is contained in:
Maksim 2019-07-31 15:14:36 +00:00 committed by kaniini
commit 58443d0cd6
4 changed files with 503 additions and 93 deletions

View file

@ -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{