mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-11-04 02:53:06 +00:00 
			
		
		
		
	populate command call once for all tests
This commit is contained in:
		@@ -22,9 +22,6 @@ from django.core.management import call_command
 | 
			
		||||
class Command(BaseCommand):
 | 
			
		||||
    help = "Set up a new instance of the Sith AE"
 | 
			
		||||
 | 
			
		||||
    def add_arguments(self, parser):
 | 
			
		||||
        parser.add_argument("--prod", action="store_true")
 | 
			
		||||
 | 
			
		||||
    def handle(self, *args, **options):
 | 
			
		||||
        root_path = os.path.dirname(
 | 
			
		||||
            os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
 | 
			
		||||
@@ -40,7 +37,4 @@ class Command(BaseCommand):
 | 
			
		||||
        except Exception as e:
 | 
			
		||||
            repr(e)
 | 
			
		||||
        call_command("migrate")
 | 
			
		||||
        if options["prod"]:
 | 
			
		||||
            call_command("populate", "--prod")
 | 
			
		||||
        else:
 | 
			
		||||
            call_command("populate")
 | 
			
		||||
        call_command("populate")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user