Skip to content

Commit

Permalink
add test for parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvonk committed Sep 30, 2024
1 parent 4fe532b commit db94b2b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/test_003_pastastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}]"])

Expand Down

0 comments on commit db94b2b

Please sign in to comment.