Skip to content

Commit

Permalink
Add manage.py createcachetable to test fixture
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mvandenburgh committed Mar 22, 2024
1 parent 23e702e commit 8b76c82
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dandi/tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8b76c82

Please sign in to comment.