From de5f7cd41e52b27ee3d8f47cf47fbfdad78216ac Mon Sep 17 00:00:00 2001 From: N3WT DE COMPET Date: Thu, 22 May 2025 01:28:48 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20restore=20du=20start.py=20suite=20=C3=A0?= =?UTF-8?q?=20des=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Back-End/start.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Back-End/start.py b/Back-End/start.py index 302da2b..a6b9def 100644 --- a/Back-End/start.py +++ b/Back-End/start.py @@ -14,7 +14,7 @@ test_mode = os.getenv('TEST_MODE', 'False') == 'True' commands = [ ["python", "manage.py", "collectstatic", "--noinput"], - # ["python", "manage.py", "flush", "--noinput"], + ["python", "manage.py", "flush", "--noinput"], ["python", "manage.py", "makemigrations", "Common", "--noinput"], ["python", "manage.py", "makemigrations", "Establishment", "--noinput"], ["python", "manage.py", "makemigrations", "Settings", "--noinput"], @@ -27,18 +27,18 @@ commands = [ ["python", "manage.py", "migrate", "--noinput"] ] -# test_commands = [ -# ["python", "manage.py", "init_mock_datas"] -# ] +test_commands = [ + ["python", "manage.py", "init_mock_datas"] +] for command in commands: if run_command(command) != 0: exit(1) -# if test_mode: -# for test_command in test_commands: -# if run_command(test_command) != 0: -# exit(1) +if test_mode: + for test_command in test_commands: + if run_command(test_command) != 0: + exit(1) # Lancer les processus en parallèle processes = [