Skip to content

Commit

Permalink
fixed test settings
Browse files Browse the repository at this point in the history
  • Loading branch information
amirreza8002 committed Sep 4, 2024
1 parent c889412 commit 4e910d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/settings/sqlite_sentinel.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
SECRET_KEY = "django_tests_secret_key"

DJANGO_REDIS_CONNECTION_FACTORY = "django_valkey.pool.SentinelConnectionFactory"
DJANGO_VALKEY_CONNECTION_FACTORY = "django_valkey.pool.SentinelConnectionFactory"

SENTINELS = [("127.0.0.1", 26379)]

CACHES = {
"default": {
"BACKEND": "django_valkey.cache.ValkeyCache",
"LOCATION": ["valkey://default_service?db=5"],
"LOCATION": ["valkey://default_service?db=1"],
"OPTIONS": {
"CLIENT_CLASS": "django_valkey.client.DefaultClient",
"SENTINELS": SENTINELS,
Expand Down
4 changes: 2 additions & 2 deletions tests/settings/sqlite_usock.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
CACHES = {
"default": {
"BACKEND": "django_valkey.cache.ValkeyCache",
"LOCATION": ["unix:///tmp/valkey.sock?db=1", "unix:///tmp/redis.sock?db=1"],
"LOCATION": ["unix:///tmp/valkey.sock?db=1", "unix:///tmp/valkey.sock?db=1"],
"OPTIONS": {"CLIENT_CLASS": "django_valkey.client.DefaultClient"},
},
"doesnotexist": {
Expand All @@ -13,7 +13,7 @@
},
"sample": {
"BACKEND": "django_valkey.cache.ValkeyCache",
"LOCATION": "valkey://127.0.0.1:6379?db=1,redis://127.0.0.1:6379?db=1",
"LOCATION": "valkey://127.0.0.1:6379?db=1,valkey://127.0.0.1:6379?db=1",
"OPTIONS": {"CLIENT_CLASS": "django_valkey.client.DefaultClient"},
},
"with_prefix": {
Expand Down

0 comments on commit 4e910d4

Please sign in to comment.