"""Test doubles for the shared ports, usable by every module's application tests.""" from __future__ import annotations class FakeUnitOfWork: def __init__(self) -> None: self.entered = 0 def __enter__(self) -> FakeUnitOfWork: self.entered += 1 return self def __exit__(self, *exc: object) -> None: return None