Skip to content

Commit

Permalink
added thread parallelization and serial tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iblanco11981870 authored and bdice committed Dec 4, 2022
1 parent fbe3fa5 commit 9225393
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9225393

Please sign in to comment.