Remove test
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
bdff856ab8
commit
cf9ecddbee
4 changed files with 5 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
||||||
# Pleroma: A lightweight social networking server
|
# 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
|
# SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
defmodule Pleroma.EctoType.ActivityPub.ObjectValidators.MapOfString do
|
defmodule Pleroma.EctoType.ActivityPub.ObjectValidators.MapOfString do
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
# Pleroma: A lightweight social networking server
|
# 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
|
# SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
defmodule Pleroma.EctoType.ActivityPub.ObjectValidators.MapOfStringTest do
|
defmodule Pleroma.EctoType.ActivityPub.ObjectValidators.MapOfStringTest do
|
||||||
alias Pleroma.EctoType.ActivityPub.ObjectValidators.MapOfString
|
|
||||||
use Pleroma.DataCase, async: true
|
use Pleroma.DataCase, async: true
|
||||||
|
|
||||||
|
alias Pleroma.EctoType.ActivityPub.ObjectValidators.MapOfString
|
||||||
|
|
||||||
test "it validates" do
|
test "it validates" do
|
||||||
data = %{
|
data = %{
|
||||||
"en-US" => "mew mew",
|
"en-US" => "mew mew",
|
||||||
|
|
|
@ -376,18 +376,6 @@ test "it prepares a quote post" do
|
||||||
end
|
end
|
||||||
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
|
describe "actor rewriting" do
|
||||||
test "it fixes the actor URL property to be a proper URI" do
|
test "it fixes the actor URL property to be a proper URI" do
|
||||||
data = %{
|
data = %{
|
||||||
|
|
Loading…
Reference in a new issue