diff --git a/.woodpecker/workflow.yaml b/.woodpecker/workflow.yaml index d58a33b..1160623 100644 --- a/.woodpecker/workflow.yaml +++ b/.woodpecker/workflow.yaml @@ -21,14 +21,9 @@ 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 uv==0.10.2 + - pip install --disable-pip-version-check --require-virtualenv --quiet 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 diff --git a/tests.py b/tests.py index 4eb3280..b4a3f08 100644 --- a/tests.py +++ b/tests.py @@ -1,7 +1,10 @@ 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): @@ -72,7 +75,7 @@ def TC(**kwargs) -> TeilchenCreate | None: ], ) async def test_maketeilcheninput_can_create_desired_teilchen( - example_input: str, expected: TeilchenCreate | None + example_input: str, expected: dict[str, str | int] | None ) -> None: actual = await make_teilchen_input(example_input)