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>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
"""Набор `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))
|
||||
Reference in New Issue
Block a user