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:
5757
5858
5959class 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-
6460 def create_indexes (self ):
6561 self .collection .create_index ("expires_at" , expireAfterSeconds = 0 )
6662 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):
476476 self ._perform_cull_test ("cull" , 50 , 29 )
477477
478478 def test_zero_cull (self ):
479- self ._perform_cull_test ("zero_cull" , 50 , 19 )
479+ self ._perform_cull_test ("zero_cull" , 50 , 18 )
480480
481481 def test_cull_delete_when_store_empty (self ):
482482 try :
@@ -551,7 +551,7 @@ def key_func(key, *args): # noqa: ARG001
551551 key = "a" * 249
552552 expected_warning = (
553553 "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)"
555555 )
556556 self ._perform_invalid_key_test (key , expected_warning , key_func = key_func )
557557
You can’t perform that action at this time.
0 commit comments