outposts: add tests for management commands

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-11-15 16:44:42 +01:00
parent 0d739f5c1a
commit f0e9bafa35

View file

@ -0,0 +1,15 @@
"""management command tests"""
from io import StringIO
from django.core.management import call_command
from django.test import TestCase
class TestManagementCommands(TestCase):
"""management command tests"""
def test_repair_permissions(self):
"""Test repair_permissions"""
out = StringIO()
call_command("repair_permissions", stdout=out)
self.assertNotEqual(out.getvalue(), "")