Skip to content

Commit

Permalink
Fix prefix in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Suor committed Jun 11, 2024
1 parent 6e37725 commit 84c210c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_low_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ def test_ttl(base, django_assert_num_queries):
qs = User.objects.cache(timeout=100).filter(pk=user.pk)
list(qs)
assert 90 <= redis_client.ttl(qs._cache_key()) <= 100
assert redis_client.ttl(f'conj:auth_user:id={user.id}') > 100
assert redis_client.ttl(f'{qs._prefix}conj:auth_user:id={user.id}') > 100

0 comments on commit 84c210c

Please sign in to comment.