From c2f2d4929ce76fa82a61937f6abbbc8f8802c5c5 Mon Sep 17 00:00:00 2001 From: Ignacio Blanco Varela <83680829+iblanco11981870@users.noreply.github.com> Date: Tue, 29 Nov 2022 14:25:49 -0500 Subject: [PATCH] added thread parallelization and serial tests --- tests/test_status.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/test_status.py b/tests/test_status.py index 9305b0e0a..f32e7fb31 100644 --- a/tests/test_status.py +++ b/tests/test_status.py @@ -15,13 +15,19 @@ def hide_progress_bar(request): return request.param -def test_hide_progress_bar(hide_progress_bar): +@pytest.fixture(params=["thread", "process", "none"]) +def parallelization(request): + return request.param + + +def test_hide_progress_bar(hide_progress_bar, parallelization): with signac.TemporaryProject(name=gen.PROJECT_NAME) as p, signac.TemporaryProject( name=gen.STATUS_OPTIONS_PROJECT_NAME ) as status_pr: gen.init(p) fp = gen._TestProject.get_project(root=p.root_directory()) + fp.config["status_parallelization"] = parallelization status_pr.import_from(origin=gen.ARCHIVE_PATH) for job in status_pr: kwargs = job.statepoint()