Test Cotton Components

Guide AI agents on testing Django Cotton components using django-cotton-bs5 pytest fixtures. Covers when to use cotton_render vs cotton_render_soup vs cotton_render_string vs cotton_render_string_soup, best practices for component testing, DOM assertions, context handling, and multi-component testing patterns. Use when writing or reviewing Cotton component tests. Use when this capability is needed.

tomevault-io Updated

File contents

tomevault-io/skills-registry/tree/main/samueljennings--django-mvp--cotton-test-components commit d40e77cf01

Frequently asked questions

npx skillmds@latest add tomevault-io/test-cotton-components