"""Набор `repo_contract.py` на настоящем SQL; число проверок то же, что на фейке.""" import pytest from conftest import make_engine, make_factory, make_uow, truncate_all 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_sql(check) -> None: await truncate_all() engine = make_engine(pool_size=2) factory = make_factory(engine) try: await check(lambda: make_uow(factory)) finally: await engine.dispose()