diff options
author | marcin mikołajczak <git@mkljczk.pl> | 2023-08-19 20:33:42 +0200 |
---|---|---|
committer | marcin mikołajczak <git@mkljczk.pl> | 2023-08-20 13:00:13 +0200 |
commit | c160ef7b6a4c8d214a7abbb5054993341ee66b2c (patch) | |
tree | 2196f07e3f1b83389e0de9028ab4ebca7a15c6c0 /test | |
parent | 62340b50b57eeab0b7ab4093e07d05080991bfc4 (diff) | |
download | pleroma-c160ef7b6a4c8d214a7abbb5054993341ee66b2c.tar.gz pleroma-c160ef7b6a4c8d214a7abbb5054993341ee66b2c.zip |
Remove test
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/ecto_type/activity_pub/object_validators/map_of_string_test.exs | 5 | ||||
-rw-r--r-- | test/pleroma/web/activity_pub/transmogrifier_test.exs | 12 |
2 files changed, 3 insertions, 14 deletions
diff --git a/test/pleroma/ecto_type/activity_pub/object_validators/map_of_string_test.exs b/test/pleroma/ecto_type/activity_pub/object_validators/map_of_string_test.exs index 4ee179dc8..941199ce8 100644 --- a/test/pleroma/ecto_type/activity_pub/object_validators/map_of_string_test.exs +++ b/test/pleroma/ecto_type/activity_pub/object_validators/map_of_string_test.exs @@ -1,11 +1,12 @@ # Pleroma: A lightweight social networking server -# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/> +# Copyright © 2017-2023 Pleroma Authors <https://pleroma.social/> # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.EctoType.ActivityPub.ObjectValidators.MapOfStringTest do - alias Pleroma.EctoType.ActivityPub.ObjectValidators.MapOfString use Pleroma.DataCase, async: true + alias Pleroma.EctoType.ActivityPub.ObjectValidators.MapOfString + test "it validates" do data = %{ "en-US" => "mew mew", diff --git a/test/pleroma/web/activity_pub/transmogrifier_test.exs b/test/pleroma/web/activity_pub/transmogrifier_test.exs index a72edf79c..3e0c8dc65 100644 --- a/test/pleroma/web/activity_pub/transmogrifier_test.exs +++ b/test/pleroma/web/activity_pub/transmogrifier_test.exs @@ -352,18 +352,6 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do end end - test "it adds contentMap if language is specified" do - user = insert(:user) - - {:ok, activity} = CommonAPI.post(user, %{status: "тест", language: "uk"}) - - {:ok, prepared} = Transmogrifier.prepare_outgoing(activity.data) - - assert prepared["object"]["contentMap"] == %{ - "uk" => "тест" - } - end - describe "actor rewriting" do test "it fixes the actor URL property to be a proper URI" do data = %{ |