From 0b51d87a06d568bcd3f01a662b9341edf8f74474 Mon Sep 17 00:00:00 2001 From: Anand Patel Date: Thu, 29 Feb 2024 00:26:49 +0000 Subject: [PATCH] Add task for collection of static files as it is needed for tests to pass. --- .vscode/tasks.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 3d24c25fb..018d04741 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -6,6 +6,11 @@ "type": "shell", "command": "python3 manage.py migrate", }, + { + "label": "Collect Static Files", + "type": "shell", + "command": "python3 manage.py collectstatic", + }, { "label": "Run Dev Server", "type": "shell", @@ -43,6 +48,7 @@ "label": "Pytest", "type": "shell", "command": "python3 -m pytest cookbook/tests", + "dependsOn": ["Run Migrations", "Collect Static Files"], "group": "test", } ]