Compare commits

...

3 commits

Author SHA1 Message Date
bronsen
623dda64b7 codestyle: hint at type we actually use
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful
2026-02-20 22:54:02 +01:00
bronsen
e7ae259897 ci: move command line arguments into environment variables 2026-02-20 22:53:30 +01:00
bronsen
13ba6c0f55 tests: don't initialize logger instance
What did we event want it for in the first place?
2026-02-20 21:49:42 +01:00
2 changed files with 7 additions and 5 deletions

View file

@ -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

View file

@ -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)