aboutsummaryrefslogtreecommitdiff
path: root/tests/cli/conftest.py
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2026-08-12 17:31:36 +0200
committerDaniel Schadt <kingdread@gmx.de>2026-08-12 17:31:36 +0200
commit69ab93daf41bb548381e70c4aa66448bc94db6fa (patch)
treecc8142515903c7f63e5a85695d6f800cd98aff75 /tests/cli/conftest.py
parent7848a3be98c3c470baf3d80cf53fd63af4ca041e (diff)
parente0cd553185383f3ccf94a04220c64f8cbe610a99 (diff)
downloadfietsboek-69ab93daf41bb548381e70c4aa66448bc94db6fa.tar.gz
fietsboek-69ab93daf41bb548381e70c4aa66448bc94db6fa.tar.bz2
fietsboek-69ab93daf41bb548381e70c4aa66448bc94db6fa.zip
Merge remote-tracking branch 'origin/cli-tests'
Diffstat (limited to 'tests/cli/conftest.py')
-rw-r--r--tests/cli/conftest.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/cli/conftest.py b/tests/cli/conftest.py
new file mode 100644
index 0000000..97193c9
--- /dev/null
+++ b/tests/cli/conftest.py
@@ -0,0 +1,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)
+ )