diff options
author | rinpatch <rinpatch@sdf.org> | 2020-09-10 18:41:00 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-09-10 18:41:00 +0000 |
commit | 541a3eede257c683edc5b50f5b459125d551013c (patch) | |
tree | a14054083f4566bd3217db115ec87e225467cc1d /test/web/mastodon_api | |
parent | 53cf7fef6ec097d60b73ef3ad6771fed7c83ff48 (diff) | |
parent | 921f926e96fd07131d4b79f5a29caed17ae2cc56 (diff) | |
download | pleroma-541a3eede257c683edc5b50f5b459125d551013c.tar.gz pleroma-541a3eede257c683edc5b50f5b459125d551013c.zip |
Merge branch 'chores/remove-ostatus-fixtures' into 'develop'
Remove OStatus in testsuite
See merge request pleroma/pleroma!2968
Diffstat (limited to 'test/web/mastodon_api')
-rw-r--r-- | test/web/mastodon_api/controllers/search_controller_test.exs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/web/mastodon_api/controllers/search_controller_test.exs b/test/web/mastodon_api/controllers/search_controller_test.exs index 24d1959f8..04dc6f445 100644 --- a/test/web/mastodon_api/controllers/search_controller_test.exs +++ b/test/web/mastodon_api/controllers/search_controller_test.exs @@ -282,18 +282,18 @@ defmodule Pleroma.Web.MastodonAPI.SearchControllerTest do capture_log(fn -> {:ok, %{id: activity_id}} = CommonAPI.post(insert(:user), %{ - status: "check out https://shitposter.club/notice/2827873" + status: "check out http://mastodon.example.org/@admin/99541947525187367" }) results = conn - |> get("/api/v1/search?q=https://shitposter.club/notice/2827873") + |> get("/api/v1/search?q=http://mastodon.example.org/@admin/99541947525187367") |> json_response_and_validate_schema(200) - [status, %{"id" => ^activity_id}] = results["statuses"] - - assert status["uri"] == - "tag:shitposter.club,2017-05-05:noticeId=2827873:objectType=comment" + assert [ + %{"url" => "http://mastodon.example.org/@admin/99541947525187367"}, + %{"id" => ^activity_id} + ] = results["statuses"] end) end |