authentik.outposts.tests.test_commands

management command tests

 1"""management command tests"""
 2
 3from io import StringIO
 4
 5from django.core.management import call_command
 6from django.test import TestCase
 7
 8
 9class TestManagementCommands(TestCase):
10    """management command tests"""
11
12    def test_repair_permissions(self):
13        """Test repair_permissions"""
14        out = StringIO()
15        call_command("repair_permissions", stdout=out)
16        self.assertNotEqual(out.getvalue(), "")
class TestManagementCommands(django.test.testcases.TestCase):
10class TestManagementCommands(TestCase):
11    """management command tests"""
12
13    def test_repair_permissions(self):
14        """Test repair_permissions"""
15        out = StringIO()
16        call_command("repair_permissions", stdout=out)
17        self.assertNotEqual(out.getvalue(), "")

management command tests

def test_repair_permissions(self):
13    def test_repair_permissions(self):
14        """Test repair_permissions"""
15        out = StringIO()
16        call_command("repair_permissions", stdout=out)
17        self.assertNotEqual(out.getvalue(), "")

Test repair_permissions