File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,6 @@ class CacheEntry:
57
57
58
58
59
59
class MongoDBCache (BaseDatabaseCache ):
60
- def __init__ (self , * args , ** options ):
61
- super ().__init__ (* args , ** options )
62
- # don't know If I can set the capped collection here.
63
-
64
60
def create_indexes (self ):
65
61
self .collection .create_index ("expires_at" , expireAfterSeconds = 0 )
66
62
self .collection .create_index ("key" , unique = True )
Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ def test_cull(self):
476
476
self ._perform_cull_test ("cull" , 50 , 29 )
477
477
478
478
def test_zero_cull (self ):
479
- self ._perform_cull_test ("zero_cull" , 50 , 19 )
479
+ self ._perform_cull_test ("zero_cull" , 50 , 18 )
480
480
481
481
def test_cull_delete_when_store_empty (self ):
482
482
try :
@@ -551,7 +551,7 @@ def key_func(key, *args): # noqa: ARG001
551
551
key = "a" * 249
552
552
expected_warning = (
553
553
"Cache key will cause errors if used with memcached: "
554
- f"{ key_func (key )} (longer than { 250 } )"
554
+ f"' { key_func (key )} ' (longer than 250)"
555
555
)
556
556
self ._perform_invalid_key_test (key , expected_warning , key_func = key_func )
557
557
You can’t perform that action at this time.
0 commit comments