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 diff --git a/tests.py b/tests.py index b4a3f08..4eb3280 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): @@ -75,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)