From 8b76c82fe98b719af21abb1fcb10e2040b43b2c5 Mon Sep 17 00:00:00 2001 From: Mike VanDenburgh Date: Fri, 22 Mar 2024 11:09:40 -0400 Subject: [PATCH] Add `manage.py createcachetable` to test fixture dandi-archive requires this command to be run as part of system initialization in order to initialize the database to serve as a Django cache backend. it must be run in order for any endpoint with caching enabled to work properly. --- dandi/tests/fixtures.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dandi/tests/fixtures.py b/dandi/tests/fixtures.py index a18123e15..2b9a40e89 100644 --- a/dandi/tests/fixtures.py +++ b/dandi/tests/fixtures.py @@ -402,6 +402,19 @@ def docker_compose_setup() -> Iterator[dict[str, str]]: env=env, check=True, ) + run( + [ + "docker-compose", + "run", + "--rm", + "django", + "./manage.py", + "createcachetable", + ], + cwd=str(LOCAL_DOCKER_DIR), + env=env, + check=True, + ) run( [ "docker-compose",