Browse Source

Fix tests

2298-weird-follow-issue
Egor Kislitsyn 3 years ago
parent
commit
98f32cf820
No known key found for this signature in database GPG Key ID: 1B49CB15B71E7805
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      lib/pleroma/web/pleroma_api/controllers/backup_controller.ex
  2. +1
    -1
      test/backup_test.exs

+ 1
- 1
lib/pleroma/web/pleroma_api/controllers/backup_controller.ex View File

@@ -5,7 +5,7 @@
defmodule Pleroma.Web.PleromaAPI.BackupController do
use Pleroma.Web, :controller

alias Pleroma.Plugs.OAuthScopesPlug
alias Pleroma.Web.Plugs.OAuthScopesPlug

action_fallback(Pleroma.Web.MastodonAPI.FallbackController)
plug(OAuthScopesPlug, %{scopes: ["read:accounts"]} when action in [:index, :create])


+ 1
- 1
test/backup_test.exs View File

@@ -19,7 +19,7 @@ defmodule Pleroma.BackupTest do
setup do
clear_config([Pleroma.Upload, :uploader])
clear_config([Pleroma.Backup, :limit_days])
clear_config([Pleroma.Emails.Mailer, :enabled])
clear_config([Pleroma.Emails.Mailer, :enabled], true)
end

test "it requries enabled email" do


Loading…
Cancel
Save