Add "Your backup is ready" email
This commit is contained in:
parent
e52dd62e14
commit
7fdd81d000
3 changed files with 25 additions and 2 deletions
|
|
@ -6,8 +6,9 @@ defmodule Pleroma.BackupTest do
|
|||
use Oban.Testing, repo: Pleroma.Repo
|
||||
use Pleroma.DataCase
|
||||
|
||||
import Pleroma.Factory
|
||||
import Mock
|
||||
import Pleroma.Factory
|
||||
import Swoosh.TestAssertions
|
||||
|
||||
alias Pleroma.Backup
|
||||
alias Pleroma.Bookmark
|
||||
|
|
@ -65,6 +66,8 @@ defmodule Pleroma.BackupTest do
|
|||
assert_enqueued(worker: BackupWorker, args: delete_job_args)
|
||||
assert {:ok, backup} = perform_job(BackupWorker, delete_job_args)
|
||||
refute Backup.get(backup_id)
|
||||
|
||||
assert_email_sent(Pleroma.Emails.UserEmail.backup_is_ready_email(backup))
|
||||
end
|
||||
|
||||
test "it removes outdated backups after creating a fresh one" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue