Test both ingestion of post in the status controller and the correct response during...
authorMark Felder <feld@feld.me>
Tue, 2 Mar 2021 18:29:16 +0000 (12:29 -0600)
committerMark Felder <feld@feld.me>
Tue, 2 Mar 2021 18:29:16 +0000 (12:29 -0600)
test/pleroma/web/mastodon_api/controllers/status_controller_test.exs

index bd385bccde6be6ea360c2aa68aaa0bd0879400b6..634ebf79cad2fbbfc724c8da3d853951d44669b3 100644 (file)
@@ -376,6 +376,17 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
           "status" => "cofe is my copilot"
         })
 
+      assert %{
+               "content" => "cofe is my copilot"
+             } = json_response_and_validate_schema(result, 200)
+
+      activity = result.assigns.activity.id
+
+      result =
+        conn
+        |> put_req_header("content-type", "application/json")
+        |> get("api/v1/statuses/#{activity}")
+
       assert %{
                "content" => "cofe is my copilot",
                "application" => %{