outposts: add tests for management commands
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
0d739f5c1a
commit
f0e9bafa35
|
@ -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(), "")
|
Reference in New Issue