diff options
author | rinpatch <rinpatch@sdf.org> | 2019-09-18 18:13:21 +0300 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2019-10-06 14:53:11 +0000 |
commit | eae9a6d34d88698ba19ba2461374cb60b1c4a33f (patch) | |
tree | e22d426a941c3602d79a78f367aa821dbbb09b29 /test/support | |
parent | 294e08cb65940ff193d6920e576f56718a5623f4 (diff) | |
download | pleroma-eae9a6d34d88698ba19ba2461374cb60b1c4a33f.tar.gz pleroma-eae9a6d34d88698ba19ba2461374cb60b1c4a33f.zip |
Initial poll refresh support
Implement refreshing the object with an interval and call the function
when getting the poll.
Diffstat (limited to 'test/support')
-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 231e7c498..833162a61 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -1004,6 +1004,10 @@ defmodule HttpRequestMock do {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/tesla_mock/sjw.json")}} end + def get("https://patch.cx/users/rin", _, _, _) do + {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/tesla_mock/rin.json")}} + end + def get(url, query, body, headers) do {:error, "Mock response not implemented for GET #{inspect(url)}, #{query}, #{inspect(body)}, #{ |