Skip to content

Commit

Permalink
#99 first test for media_backup management command (print error messa…
Browse files Browse the repository at this point in the history
…ge if no production / backup storage is defined)
  • Loading branch information
ephes committed Aug 11, 2023
1 parent 633dce2 commit ff616ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/management_command_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from django.core.management import call_command


def test_media_backup_without_storages(capsys, settings):
settings.STORAGES = {}
call_command("media_backup")
captured = capsys.readouterr()
assert captured.out == "production or backup storage not configured\n"

0 comments on commit ff616ae

Please sign in to comment.