logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 37de58823f8c7ec45921ea16fc7b5a2e25d27ad1
parent 5bbcf5b8b729da64e80124d7436ef072dd50dec2
Author: Mark Felder <feld@feld.me>
Date:   Wed,  8 May 2024 00:49:29 +0000

Remove test validating missing descriptions are returned as an empty string

Diffstat:

Mtest/pleroma/web/mastodon_api/controllers/status_controller_test.exs28----------------------------
1 file changed, 0 insertions(+), 28 deletions(-)

diff --git a/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs b/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs @@ -1698,34 +1698,6 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do assert response_two == card_data end - - test "replaces missing description with an empty string", %{conn: conn, user: user} do - Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end) - - {:ok, activity} = CommonAPI.post(user, %{status: "https://example.com/ogp-missing-data"}) - - response = - conn - |> get("/api/v1/statuses/#{activity.id}/card") - |> json_response_and_validate_schema(:ok) - - assert response == %{ - "type" => "link", - "title" => "Pleroma", - "description" => "", - "image" => nil, - "provider_name" => "example.com", - "provider_url" => "https://example.com", - "url" => "https://example.com/ogp-missing-data", - "pleroma" => %{ - "opengraph" => %{ - "title" => "Pleroma", - "type" => "website", - "url" => "https://example.com/ogp-missing-data" - } - } - } - end end test "bookmarks" do