Skip to content

Commit

Permalink
touching up test_package
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed May 20, 2024
1 parent ddb4d90 commit 2b0e1d2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nipype2pydra/tests/test_package.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import sys
import shutil
import subprocess as sp
import traceback
import re
import pytest
import toml
from nipype2pydra.cli import pkg_gen, convert
Expand Down Expand Up @@ -91,8 +93,8 @@ def test_package_complete(package_spec, cli_runner, tmp_path, tasks_template_arg
except sp.CalledProcessError:
raise RuntimeError(
f"Tests of generated package '{pkg_name}' failed when running, "
f"'\n{' '.join(pytest_cmd)}':\n\n{pytest_output}"
f"'\n{' '.join(pytest_cmd)}':\n\n{traceback.format_exc()}"
)

assert "fail" not in pytest_output
assert "error" not in pytest_output
assert not re.findall(r"\bFAIL\b", pytest_output)
assert not re.findall(r"\bERROR\b", pytest_output)

0 comments on commit 2b0e1d2

Please sign in to comment.