File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,23 +128,23 @@ def _get_mongetter_by_collection_name(collection_name=_COLLECTION_NAME):
128128 parallel.
129129 """
130130
131- def _custome_mongetter ():
132- if not hasattr (_test_mongetter , "client" ):
131+ def _custom_mongetter ():
132+ if not hasattr (_custom_mongetter , "client" ):
133133 if (
134134 str (CFG .mget (CfgKey .TEST_VS_DOCKERIZED_MONGO )).lower ()
135135 == "true"
136136 ):
137137 print ("Using live MongoDB instance for testing." )
138- _test_mongetter .client = _get_cachier_db_mongo_client ()
138+ _custom_mongetter .client = _get_cachier_db_mongo_client ()
139139 else :
140140 print ("Using in-memory MongoDB instance for testing." )
141- _test_mongetter .client = InMemoryMongoClient ()
142- db_obj = _test_mongetter .client ["cachier_test" ]
141+ _custom_mongetter .client = InMemoryMongoClient ()
142+ db_obj = _custom_mongetter .client ["cachier_test" ]
143143 if _COLLECTION_NAME not in db_obj .list_collection_names ():
144144 db_obj .create_collection (collection_name )
145145 return db_obj [collection_name ]
146146
147- return _custome_mongetter
147+ return _custom_mongetter
148148
149149
150150# === Mongo core tests ===
You can’t perform that action at this time.
0 commit comments