Add config for Pleroma.Backup

This commit is contained in:
Egor Kislitsyn 2020-09-04 18:30:39 +04:00
commit 3ad7492f9d
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
5 changed files with 31 additions and 2 deletions

View file

@ -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