Skip to content

Commit d532423

Browse files
Increase verbosity & change assert in consumer tests (#370)
1 parent f784d43 commit d532423

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/consumer_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
run: |
4747
set -o pipefail
48-
.venv_docs/bin/python -m pytest -s -v src/tests/ --repo="$CONSUMER" --junitxml="reports/${{ matrix.consumer }}.xml" | tee "reports/${{ matrix.consumer }}.log"
48+
.venv_docs/bin/python -m pytest -s -vv src/tests/ --repo="$CONSUMER" --junitxml="reports/${{ matrix.consumer }}.xml" | tee "reports/${{ matrix.consumer }}.log"
4949
env:
5050
FORCE_COLOR: "1"
5151
TERM: xterm-256color

src/tests/test_consumer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ def test_and_clone_repos_updated(sphinx_base_dir: Path, pytestconfig: Config):
669669

670670
# Printing a 'overview' table as a result
671671
print_result_table(results)
672-
assert overall_success, (
673-
"Consumer Tests failed, see table for which commands specifically. "
674-
"Enable verbosity for warning/error printouts"
675-
)
672+
if not overall_success:
673+
pytest.fail(
674+
reason="Consumer Tests failed, see table for which commands specifically. "
675+
)

0 commit comments

Comments
 (0)