Skip to content

Commit 534374b

Browse files
committed
Make the test_cqa tests less noisy
1 parent 0552a66 commit 534374b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/test_cqa.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ def test_cqa_ruff_check(project_root):
2424
)
2525

2626
if result.returncode != 0:
27-
pytest.fail(f"ruff check failed:\n{result.stdout}\n{result.stderr}")
27+
pytest.fail(
28+
f"ruff check failed:\n{result.stdout}\n{result.stderr}",
29+
pytrace=False,
30+
)
2831

2932

3033
def test_cqa_ruff_format_check(project_root):
@@ -39,7 +42,8 @@ def test_cqa_ruff_format_check(project_root):
3942

4043
if result.returncode != 0:
4144
pytest.fail(
42-
f"ruff format check failed:\n{result.stdout}\n{result.stderr}"
45+
f"ruff format check failed:\n{result.stdout}\n{result.stderr}",
46+
pytrace=False,
4347
)
4448

4549

@@ -66,4 +70,4 @@ def test_cqa_mypy(project_root):
6670
output = result.stdout
6771
if result.stderr:
6872
output += "\n\n" + result.stderr
69-
pytest.fail(f"mypy validation failed:\n{output}")
73+
pytest.fail(f"mypy validation failed:\n{output}", pytrace=False)

0 commit comments

Comments
 (0)