Skip to content

Commit

Permalink
improve dask distributed test
Browse files Browse the repository at this point in the history
  • Loading branch information
observingClouds committed Oct 30, 2024
1 parent 0eeca64 commit c951797
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ def distributed():


@pytest.mark.parametrize(
"args", [["example.danra.yaml", "--dask-distributed-local-core-fraction", "0.1"]]
"args", [["example.danra.yaml", "--dask-distributed-local-core-fraction", "0.1"], ["example.danra.yaml"]]
)
def test_run_distributed(args):
if distributed():
if distributed() and "--dask-distributed-local-core-fraction" in args:
pytest.raises(
ZeroDivisionError,
call_wrapper(args),
match="division by zero",
elif distributed():
call_wrapper(args)
else:
pytest.raises(
Expand Down

0 comments on commit c951797

Please sign in to comment.