PR #284 · pramaan-io/pramaan-functions · merged 2026-06-09
Twenty test files, twenty copies of the same user-and-firm setup — one rename away from silent chaos.
When test infrastructure is duplicated, the tests become the hardest thing to change.
Twenty copies, nineteen wrong, zero alarms.
The fix — One pantry, twenty recipes, zero drift.
sequenceDiagram autonumber participant test as Test file participant factories as tests/factories.py participant conftest as tests/integration/conftest.py test->>factories: call factory factories->>test: user / firm / client conftest->>test: JWT + cleanup (auto) test->>test: scenario helpers stay local