Skip to content

Commit 81e156b

Browse files
committed
chore: attempt to properly display subprocess errors in integration tests
1 parent f674aec commit 81e156b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
addopts = --show-capture=all

tests/integration_tests/test_robust_python_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_demo_project_nox_session(robust_demo: Path, session: str) -> None:
2121
capture_output=True,
2222
text=True
2323
)
24-
result.check_returncode()
24+
assert result.check_returncode() == 0
2525

2626

2727
def test_demo_project_nox_pre_commit(robust_demo: Path) -> None:

0 commit comments

Comments
 (0)