redundant-test-constructor-forwarder
A private test helper mirrors a resolved value-record constructor without adding a contract.
Why
A forwarding helper repeats the constructor's fields and types, creating a second signature to maintain without scenario defaults or setup.
Fix
Use the real typed constructor at known callers. Keep helpers that choose defaults, transform data, own resources, narrow types, or provide an intentional patch boundary.
Examples
# Example test package.from pydantic import BaseModel
class Record(BaseModel): value: str
def _record(value: str) -> Record: return Record(value=value)
def test_record(): assert _record("item").value == "item"# Example test package.from pydantic import BaseModel
class Record(BaseModel): value: str
def test_record(): assert Record(value="item").value == "item"