Compare commits
3 commits
fe73b03bf3
...
623dda64b7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
623dda64b7 | ||
|
|
e7ae259897 | ||
|
|
13ba6c0f55 |
2 changed files with 7 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
5
tests.py
5
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue