aboutsummaryrefslogtreecommitdiff
path: root/tests/cli/conftest.py
blob: 97193c98971f9ae25b66e02191dbfde0cd0b21b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pytest

fietsctl_results = []


@pytest.hookimpl(hookwrapper=True)
def pytest_runtest_call(item):
    fietsctl_results.clear()

    yield

    item.add_report_section(
        "call", "fietsctl", "\n\n".join(result.report() for result in fietsctl_results)
    )