From ba6cac803c376dfa901460396ce2d1f0977bc12f Mon Sep 17 00:00:00 2001 From: Anand Patel Date: Thu, 29 Feb 2024 00:47:31 +0000 Subject: [PATCH] Fix dependencies to set tests up. --- .vscode/tasks.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 018d04741..c4f8a1542 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -10,6 +10,7 @@ "label": "Collect Static Files", "type": "shell", "command": "python3 manage.py collectstatic", + "dependsOn": ["Yarn Build"], }, { "label": "Run Dev Server", @@ -45,10 +46,14 @@ "group": "build", }, { - "label": "Pytest", + "label": "Setup Tests", + "dependsOn": ["Run Migrations", "Collect Static Files"], + }, + { + "label": "Run all pytests", "type": "shell", "command": "python3 -m pytest cookbook/tests", - "dependsOn": ["Run Migrations", "Collect Static Files"], + "dependsOn": ["Setup Tests"], "group": "test", } ]