Fix getting videos from peertube

This commit is contained in:
Haelwenn (lanodan) Monnier 2020-05-25 13:13:42 +02:00
commit fbb9743a70
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
5 changed files with 76 additions and 24 deletions

View file

@ -308,6 +308,22 @@ defmodule HttpRequestMock do
}}
end
def get("https://framatube.org/accounts/framasoft", _, _, _) do
{:ok,
%Tesla.Env{
status: 200,
body: File.read!("test/fixtures/tesla_mock/https___framatube.org_accounts_framasoft.json")
}}
end
def get("https://framatube.org/videos/watch/6050732a-8a7a-43d4-a6cd-809525a1d206", _, _, _) do
{:ok,
%Tesla.Env{
status: 200,
body: File.read!("test/fixtures/tesla_mock/framatube.org-video.json")
}}
end
def get("https://peertube.social/accounts/craigmaloney", _, _, _) do
{:ok,
%Tesla.Env{