diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2019-12-04 09:34:44 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-12-04 09:34:44 +0300 |
commit | 29a98b86b7056540ed4102a83dfe6a7e809c2519 (patch) | |
tree | 559c763669b1f647f96ff9fa67e36343da87565f /test/support | |
parent | 652cc6ba4b7a0494cc96ef4a9bfcaa3b5e5be60e (diff) | |
parent | 7722e5a67a46304f3ae0e37f674a44ca9268be5e (diff) | |
download | pleroma-29a98b86b7056540ed4102a83dfe6a7e809c2519.tar.gz |
Merge branch 'develop' into issue/1383
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/factory.ex | 1 | ||||
-rw-r--r-- | test/support/http_request_mock.ex | 16 |
2 files changed, 16 insertions, 1 deletions
diff --git a/test/support/factory.ex b/test/support/factory.ex index e3f797f64..bb8a64e72 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -31,7 +31,6 @@ defmodule Pleroma.Factory do nickname: sequence(:nickname, &"nick#{&1}"), password_hash: Comeonin.Pbkdf2.hashpwsalt("test"), bio: sequence(:bio, &"Tester Number #{&1}"), - info: %{}, last_digest_emailed_at: NaiveDateTime.utc_now() } diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 965335e96..e3a621f49 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -1035,6 +1035,22 @@ defmodule HttpRequestMock do }} end + def get("http://localhost:8080/followers/fuser3", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/users_mock/friendica_followers.json") + }} + end + + def get("http://localhost:8080/following/fuser3", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/users_mock/friendica_following.json") + }} + end + def get("http://localhost:4001/users/fuser2/followers", _, _, _) do {:ok, %Tesla.Env{ |