Frappe Doctype Tests

Expert guidance for writing DocType controller Python tests in custom Frappe apps. Covers the mandatory workflow (read controller, read schema, write test, run), FrappeTestCase base class, make_ helper pattern, and 6 test categories (validation, computed fields, lifecycle side-effects, whitelisted methods, link validation, child table logic). Use when writing test_{doctype}.py files, testing controller hooks, testing whitelisted methods, or debugging failing doctype tests.

kehwar Updated

File contents

kehwar/skills/tree/main/skills/frappe/frappe-doctype-tests commit 1ac4c0da75

Frequently asked questions

npx skillmds@latest add kehwar/frappe-doctype-tests