From 80bea32740e661286c20b4221945ac24ea3af6fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Mon, 1 Jul 2024 21:00:20 +0200 Subject: [PATCH 1/2] Add pytest-clarity to test environment to improve error log output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- test/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test/requirements.txt b/test/requirements.txt index 6782a06..67aaf74 100644 --- a/test/requirements.txt +++ b/test/requirements.txt @@ -2,3 +2,4 @@ pytest == 7.4 pytest-xdist == 3.5.0 pytest-testinfra == 10.0.0 black == 23.12.0 +pytest-clarity == 1.0.1 From c26e71edfd712b3d5cf3afbcfff9539ea962066c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Tue, 2 Jul 2024 08:20:47 +0200 Subject: [PATCH 2/2] Set column width to 120 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- test/cmd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cmd.sh b/test/cmd.sh index 6324a36..ef40a29 100755 --- a/test/cmd.sh +++ b/test/cmd.sh @@ -8,4 +8,4 @@ docker images pihole:${GIT_TAG} python -m black ./test/tests/ # TODO: Add junitxml output and have something consume it -py.test -vv -n auto ./test/tests/ +COLUMNS=120 py.test -vv -n auto ./test/tests/