diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2019-12-05 15:46:27 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-12-05 15:46:27 +0300 |
commit | 3fe7a1fd35a9ca81b158eff6dbcc25ca48cbf96d (patch) | |
tree | 9a275a71ab8eeb19ce1e02d0b6ba64fe309f3d79 /test/support | |
parent | a36607c27e6a50aeca450570f7b8e4c9c0233bb1 (diff) | |
parent | 228bf4d214abe3bb62c52128d3bc145e396b174d (diff) | |
download | pleroma-3fe7a1fd35a9ca81b158eff6dbcc25ca48cbf96d.tar.gz pleroma-3fe7a1fd35a9ca81b158eff6dbcc25ca48cbf96d.zip |
Merge branch 'develop' into issue/1342
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 4bd82ebd6..5f976f9ce 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(), notification_settings: %Pleroma.User.NotificationSetting{} } 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{ |