Files
mtusi2026lab6/service-tests/unit/test_repo_contract.py
T
ricoromaandClaude Opus 5.5 9cc6c0c7a6 chore: port lab 5 solution into the lab 6 skeleton
Source: mtusi2026lab5-safronov, solution/bvt2301-safronov, 046ec9e.
Contracts, public tests and evidence of lab 5 are not carried over.
The compose project, image and CI prefix are renamed to lab6; the first
broker start defect is recorded in KNOWN_ISSUES.md; PLAN.md outlines the
OpenSpec changes of lab 6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 04:46:56 +03:00

19 lines
469 B
Python

"""Набор `repo_contract.py` на фейке; тот же набор на SQL —
`db/test_repo_contract_sql.py`."""
import pytest
from fakes import FakeDatabase, FakeUnitOfWork
from repo_contract import CHECKS
pytestmark = pytest.mark.anyio
@pytest.mark.parametrize(
"check",
CHECKS,
ids=[check.__name__ for check in CHECKS],
)
async def test_repo_contract(check, database: FakeDatabase) -> None:
await check(lambda: FakeUnitOfWork(database))