Skip to content

Commit 9b16622

Browse files
committed
more test isolation for mongodb
1 parent 59a22a1 commit 9b16622

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

tests/test_defaults.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ def _stale_after_next_time(arg_1, arg_2):
253253
@pytest.mark.parametrize(*PARAMETRIZE_TEST)
254254
def test_wait_for_calc_applies_dynamically(backend, mongetter):
255255
"""Testing for calls timing out to be performed twice when needed."""
256+
if backend == "mongo":
257+
mongetter = _get_mongetter_by_collection_name(
258+
"test_wait_for_calc_applies_dynamically"
259+
)
256260

257261
@cachier.cachier(backend=backend, mongetter=mongetter)
258262
def _wait_for_calc_timeout_slow(arg_1, arg_2):

tests/test_mongo_core.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,12 @@ def _params_with_dataframe(*args, **kwargs):
457457
@pytest.mark.mongo
458458
@pytest.mark.parametrize("separate_files", [True, False])
459459
def test_wait_for_calc_timeout_ok(separate_files):
460+
mongetter = _get_mongetter_by_collection_name(
461+
"test_wait_for_calc_timeout_ok"
462+
)
463+
460464
@cachier(
461-
mongetter=_test_mongetter,
465+
mongetter=mongetter,
462466
stale_after=MONGO_DELTA_LONG,
463467
separate_files=separate_files,
464468
next_time=False,

0 commit comments

Comments
 (0)