Skip to content

Commit 5c3c147

Browse files
committed
fix _custom_mongetter
1 parent 0601473 commit 5c3c147

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/test_mongo_core.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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 ===

0 commit comments

Comments
 (0)