Add config for Pleroma.Backup
This commit is contained in:
parent
a0ad9bd734
commit
3ad7492f9d
5 changed files with 31 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ defmodule Pleroma.BackupTest do
|
|||
|
||||
test "it return an error if the export limit is over" do
|
||||
%{id: user_id} = user = insert(:user)
|
||||
limit_days = 7
|
||||
limit_days = Pleroma.Config.get([Pleroma.Backup, :limit_days])
|
||||
assert {:ok, %Oban.Job{args: args}} = Backup.create(user)
|
||||
backup = Backup.get(args["backup_id"])
|
||||
assert %Backup{user_id: ^user_id, processed: false, file_size: 0} = backup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue