From db94b2b21878a3701a7362984b713e9ee1119a25 Mon Sep 17 00:00:00 2001 From: Martin Vonk Date: Mon, 30 Sep 2024 11:13:49 +0200 Subject: [PATCH] add test for parallel --- tests/test_003_pastastore.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/test_003_pastastore.py b/tests/test_003_pastastore.py index 3fc3b35..531abc4 100644 --- a/tests/test_003_pastastore.py +++ b/tests/test_003_pastastore.py @@ -195,13 +195,20 @@ def test_iter_models(request, pstore): def test_solve_models_and_get_stats(request, pstore): depends(request, [f"test_create_models[{pstore.type}]"]) _ = pstore.solve_models( - ignore_solve_errors=False, progressbar=False, store_result=True + ignore_solve_errors=False, progressbar=False, store_result=True, parallel=False ) stats = pstore.get_statistics(["evp", "aic"], progressbar=False) assert stats.index.size == 2 -@pytest.mark.dependency +@pytest.mark.dependency() +def test_solve_models_parallel(request, pstore): + depends(request, [f"test_create_models[{pstore.type}]"]) + _ = pstore.solve_models( + ignore_solve_errors=False, progressbar=False, store_result=True, parallel=True + ) + + def test_apply(request, pstore): depends(request, [f"test_solve_models_and_get_stats[{pstore.type}]"])