mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-11-03 18:43:04 +00:00 
			
		
		
		
	test populate_more command
This commit is contained in:
		
							
								
								
									
										13
									
								
								core/tests/test_commands.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								core/tests/test_commands.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
import contextlib
 | 
			
		||||
import os
 | 
			
		||||
 | 
			
		||||
import pytest
 | 
			
		||||
from django.core.management import call_command
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@pytest.mark.django_db
 | 
			
		||||
def test_populate_more(settings):
 | 
			
		||||
    """Just check that populate more doesn't crash"""
 | 
			
		||||
    settings.DEBUG = True
 | 
			
		||||
    with open(os.devnull, "w") as devnull, contextlib.redirect_stdout(devnull):
 | 
			
		||||
        call_command("populate_more", "--nb-users", "50")
 | 
			
		||||
		Reference in New Issue
	
	Block a user