Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions tests/integrations/django/test_cache_module.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import random
import uuid

import pytest
Expand Down Expand Up @@ -30,7 +29,7 @@ def use_django_caching(settings):
settings.CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": "unique-snowflake-%s" % random.randint(1, 1000000),
"LOCATION": "unique-snowflake-%s" % uuid.uuid4(),
}
}

Expand All @@ -40,7 +39,7 @@ def use_django_caching_with_middlewares(settings):
settings.CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": "unique-snowflake-%s" % random.randint(1, 1000000),
"LOCATION": "unique-snowflake-%s" % uuid.uuid4(),
}
}
if hasattr(settings, "MIDDLEWARE"):
Expand Down
Loading