aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-09-17 18:42:24 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-10-07 18:34:30 +0400
commit7fdd81d000d857cbcd5bf442f68c91b1c5b1cebb (patch)
treec32d0304bd0d7ce7b78d767c5449b35dfd50be41 /test
parente52dd62e14a956a28a706124464f3ac4b985080d (diff)
downloadpleroma-7fdd81d000d857cbcd5bf442f68c91b1c5b1cebb.tar.gz
Add "Your backup is ready" email
Diffstat (limited to 'test')
-rw-r--r--test/backup_test.exs5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/backup_test.exs b/test/backup_test.exs
index 318c8c419..0ea40e6fd 100644
--- a/test/backup_test.exs
+++ b/test/backup_test.exs
@@ -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