diff options
| author | lain <lain@soykaf.club> | 2020-04-17 15:51:24 +0200 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2020-04-17 15:51:24 +0200 |
| commit | 8c2c325598dcd85f76752a17b39ce27689a65250 (patch) | |
| tree | 5283acd447e60c401631aab4b01768d3f79d142e /test/web/mastodon_api/controllers/suggestion_controller_test.exs | |
| parent | 372614cfd3119b589c9c47619445714e8ae6c07e (diff) | |
| parent | 6936854878860d1f6d04db1cd14a00208c6a5728 (diff) | |
| download | pleroma-8c2c325598dcd85f76752a17b39ce27689a65250.tar.gz pleroma-8c2c325598dcd85f76752a17b39ce27689a65250.zip | |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel-dms
Diffstat (limited to 'test/web/mastodon_api/controllers/suggestion_controller_test.exs')
| -rw-r--r-- | test/web/mastodon_api/controllers/suggestion_controller_test.exs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/test/web/mastodon_api/controllers/suggestion_controller_test.exs b/test/web/mastodon_api/controllers/suggestion_controller_test.exs index c697a39f8..8d0e70db8 100644 --- a/test/web/mastodon_api/controllers/suggestion_controller_test.exs +++ b/test/web/mastodon_api/controllers/suggestion_controller_test.exs @@ -7,34 +7,8 @@ defmodule Pleroma.Web.MastodonAPI.SuggestionControllerTest do alias Pleroma.Config - import Pleroma.Factory - import Tesla.Mock - setup do: oauth_access(["read"]) - setup %{user: user} do - other_user = insert(:user) - host = Config.get([Pleroma.Web.Endpoint, :url, :host]) - url500 = "http://test500?#{host}&#{user.nickname}" - url200 = "http://test200?#{host}&#{user.nickname}" - - mock(fn - %{method: :get, url: ^url500} -> - %Tesla.Env{status: 500, body: "bad request"} - - %{method: :get, url: ^url200} -> - %Tesla.Env{ - status: 200, - body: - ~s([{"acct":"yj455","avatar":"https://social.heldscal.la/avatar/201.jpeg","avatar_static":"https://social.heldscal.la/avatar/s/201.jpeg"}, {"acct":"#{ - other_user.ap_id - }","avatar":"https://social.heldscal.la/avatar/202.jpeg","avatar_static":"https://social.heldscal.la/avatar/s/202.jpeg"}]) - } - end) - - [other_user: other_user] - end - test "returns empty result", %{conn: conn} do res = conn |
