Skip to content

Commit 1746db0

Browse files
committed
test: add tests for blacklist cache functionality
- Added test_cache.py. - Updated conftest.py and test_integration.py.
1 parent 52df0b1 commit 1746db0

File tree

3 files changed

+579
-0
lines changed

3 files changed

+579
-0
lines changed

tests/conftest.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ def pytest_configure():
4343
SIMPLE_JWT={
4444
"BLACKLIST_AFTER_ROTATION": True,
4545
"TOKEN_FAMILY_ENABLED": True,
46+
"SJWT_CACHE_NAME": "default",
47+
},
48+
CACHES={
49+
"default": {
50+
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
51+
"LOCATION": "unique-snowflake",
52+
},
53+
"alternate": {
54+
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
55+
"LOCATION": "alternate-snowflake",
56+
},
4657
},
4758
)
4859

0 commit comments

Comments
 (0)