outposts: add tests for management commands
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		
							
								
								
									
										15
									
								
								authentik/outposts/tests/test_commands.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								authentik/outposts/tests/test_commands.py
									
									
									
									
									
										Normal 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(), "")
 | 
			
		||||
		Reference in New Issue
	
	Block a user