octobot/OKF/specs/ferry-python-siblings/D-2-mocking-doctrine.md
Lukasz Boryn 18d48ce850 docs(spec): ferry the python-siblings feature into three edged decisions
- docs(spec): MAP plus D-1 structure, D-2 mocking doctrine, D-3 content split
- docs(okf): index the ferry directory
2026-07-19 23:24:38 +02:00

603 B

status, blocked-by
status blocked-by
open
D-1

D-2 — mocking doctrine: facade + DI only, or bless monkeypatch?

Why it must be decided

mocking-py.md is the normative file bdd points at before any patch call; its stance decides what reviews flag.

Options

  • A — facade + DI only: monkeypatch/patch treated like mockery::stub in R — a smell needing justification. Consistent with codebase-design.
  • B — bless monkeypatch at seams: pragmatic pytest idiom, weaker seam discipline.

Recommendation

A — matches the R doctrine and the existing bdd "seams only" rule.

Resolution