We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3b7832 commit 64a57eaCopy full SHA for 64a57ea
pydra/scripts/tests/test_crash.py
@@ -1,16 +1,21 @@
1
-from pydra.scripts.cli import crash
+import pytest
2
from pydra.utils.general import default_run_cache_root
3
+from pydra.scripts.cli import crash
4
from pydra.tasks.testing import Divide
5
from traceback import format_exception
6
import typing as ty
7
8
9
# @pytest.mark.xfail(reason="Need to fix a couple of things after syntax changes")
10
def test_crash_cli(cli_runner):
11
+ wf = Divide(x=15, y=0)
12
+ with pytest.raises(ZeroDivisionError):
13
+ wf()
14
+
15
result = cli_runner(
16
crash,
17
[
- f"{default_run_cache_root}/{Divide(x=15, y=0)._checksum}/_error.pklz",
18
+ f"{default_run_cache_root}/{wf._checksum}/_error.pklz",
19
"--rerun",
20
"--debugger",
21
"pdb",
0 commit comments