From 13ba6c0f55bb4140c7d900c4773f3c25fc8f1cde Mon Sep 17 00:00:00 2001 From: bronsen Date: Fri, 20 Feb 2026 21:49:42 +0100 Subject: [PATCH 1/3] tests: don't initialize logger instance What did we event want it for in the first place? --- tests.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests.py b/tests.py index b4a3f08..fb7a0e6 100644 --- a/tests.py +++ b/tests.py @@ -1,10 +1,7 @@ import pytest -import logging from teilchensammler_cli.models import TeilchenCreate, make_teilchen_input -logger = logging.getLogger(__name__) - @pytest.mark.final # don't run while we are fiddling with the app def test_initial_layout(snap_compare): From e7ae2598970b0a4efead580eb4e55dc5fbf6444c Mon Sep 17 00:00:00 2001 From: bronsen Date: Fri, 20 Feb 2026 22:53:30 +0100 Subject: [PATCH 2/3] ci: move command line arguments into environment variables --- .woodpecker/workflow.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.woodpecker/workflow.yaml b/.woodpecker/workflow.yaml index 1160623..d58a33b 100644 --- a/.woodpecker/workflow.yaml +++ b/.woodpecker/workflow.yaml @@ -21,9 +21,14 @@ steps: - name: Run Tests image: docker.io/astral/uv:python${PYTHON_VERSION}-trixie-slim + environment: + UV_LINK_MODE: copy + PIP_DISABLE_PIP_VERSION_CHECK: true + PIP_REQUIRE_VIRTUALENV: true + PIP_QUIET: true commands: - python -m venv venv - . venv/bin/activate - - pip install --disable-pip-version-check --require-virtualenv --quiet uv==0.10.2 + - pip install uv==0.10.2 - uv run --active pytest tests.py # coverage: uv run pytest tests.py --cov-report= --cov=src # no cov report on terminal: useful for CI From 623dda64b7ca200b1eb245662aa9acd2564e016e Mon Sep 17 00:00:00 2001 From: bronsen Date: Fri, 20 Feb 2026 22:54:02 +0100 Subject: [PATCH 3/3] codestyle: hint at type we actually use --- tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests.py b/tests.py index fb7a0e6..4eb3280 100644 --- a/tests.py +++ b/tests.py @@ -72,7 +72,7 @@ def TC(**kwargs) -> TeilchenCreate | None: ], ) async def test_maketeilcheninput_can_create_desired_teilchen( - example_input: str, expected: dict[str, str | int] | None + example_input: str, expected: TeilchenCreate | None ) -> None: actual = await make_teilchen_input(example_input)