tests consistency

This commit is contained in:
Alexander Strizhakov 2020-06-23 18:16:47 +03:00
parent 6bf85440b3
commit 7dffaef479
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
258 changed files with 38 additions and 37 deletions
test
fixtures/modules
pleroma
activity/ir
activity_test.exs
bbs
bookmark_test.exscaptcha_test.exs
chat
chat_test.exs
config
config_db_test.exsconfig_test.exs
conversation
conversation_test.exs
docs
earmark_renderer_test.exs
ecto_type/activity_pub/object_validators
emails
emoji
emoji_test.exsfilter_test.exsfollowing_relationship_test.exsformatter_test.exshealthcheck_test.exshtml_test.exs
http
http_test.exs
instances
instances_test.exs
integration
job_queue_monitor_test.exskeys_test.exslist_test.exsmarker_test.exs
mfa
mfa_test.exs
migration_helper
moderation_log_test.exsnotification_test.exs
object
object_test.exsotp_version_test.exspagination_test.exsregistration_test.exsrepo_test.exsreverse_proxy_test.exsruntime_test.exssafe_jsonb_set_test.exsscheduled_activity_test.exssignature_test.exsstats_test.exs
upload
upload_test.exs
uploaders
user
user_invite_token_test.exsuser_relationship_test.exsuser_search_test.exsuser_test.exs
web/activity_pub

View file

@ -2,7 +2,7 @@
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule RuntimeModule do
defmodule Fixtures.Modules.RuntimeModule do
@moduledoc """
This is a dummy module to test custom runtime modules.
"""

View file

@ -2,7 +2,7 @@
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.ObjectValidators.Types.DateTimeTest do
defmodule Pleroma.EctoType.ActivityPub.ObjectValidators.DateTimeTest do
alias Pleroma.EctoType.ActivityPub.ObjectValidators.DateTime
use Pleroma.DataCase

View file

@ -2,7 +2,7 @@
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ObjectValidators.Types.ObjectIDTest do
defmodule Pleroma.EctoType.ActivityPub.ObjectValidators.ObjectIDTest do
alias Pleroma.EctoType.ActivityPub.ObjectValidators.ObjectID
use Pleroma.DataCase

View file

@ -2,7 +2,7 @@
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ObjectValidators.Types.RecipientsTest do
defmodule Pleroma.EctoType.ActivityPub.ObjectValidators.RecipientsTest do
alias Pleroma.EctoType.ActivityPub.ObjectValidators.Recipients
use Pleroma.DataCase

View file

@ -2,7 +2,7 @@
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.ObjectValidators.Types.SafeTextTest do
defmodule Pleroma.EctoType.ActivityPub.ObjectValidators.SafeTextTest do
use Pleroma.DataCase
alias Pleroma.EctoType.ActivityPub.ObjectValidators.SafeText

View file

@ -6,6 +6,7 @@ defmodule Pleroma.RuntimeTest do
use ExUnit.Case, async: true
test "it loads custom runtime modules" do
assert {:module, RuntimeModule} == Code.ensure_compiled(RuntimeModule)
assert {:module, Fixtures.Modules.RuntimeModule} ==
Code.ensure_compiled(Fixtures.Modules.RuntimeModule)
end
end

Some files were not shown because too many files have changed in this diff Show more