Compare commits
No commits in common. "623dda64b7ca200b1eb245662aa9acd2564e016e" and "fe73b03bf3f3fef8776fb22072cb5ac946ee336c" have entirely different histories.
623dda64b7
...
fe73b03bf3
2 changed files with 5 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
5
tests.py
5
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue