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>
19 lines
469 B
Python
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))
|