{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"}],"enrichment":{"capability":"Provides factory-boy classes for generating test fixtures and mock data for Wagtail CMS models, pages, and content blocks.","skillfed_tags":["wagtail","testing","fixtures"],"use_cases":["Generate realistic Wagtail page hierarchies and StreamField content for testing page rendering and query logic.","Create factory classes for custom block types to populate test data with nested structures like carousels or galleries.","Build parameterized test fixtures that vary content structure and field values without duplicating setup code.","Test Wagtail page chooser blocks and other relational fields by auto-generating linked pages.","Simplify integration tests that require a populated Wagtail page tree with specific content blocks."],"what_it_does":"wagtail-factories is a testing utility that extends factory-boy to generate Wagtail CMS objects\u2014pages, content blocks, and StreamField values\u2014for use in unit and integration tests. It provides pre-built factory classes for common Wagtail types (PageFactory, StructBlockFactory, ListBlockFactory, ImageChooserBlockFactory) and allows you to compose them declaratively to build complex nested content structures on the fly, eliminating the need to manually construct test data in your test suite.\n\nThe package is designed for developers writing tests against Wagtail-based applications. Instead of creating pages and blocks by hand in test setup, you define factory subclasses that mirror your model structure, then instantiate them with minimal parameters. It handles the boilerplate of populating required fields, nesting blocks, and managing relationships, making test code more readable and maintainable.","worth_installing":"Yes. wagtail-factories is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It directly solves a common pain point in Wagtail testing by reducing boilerplate. Install it if you write tests for Wagtail applications and want cleaner, more maintainable test fixtures."},"id":"wagtail-factories","links":{"html":"https://skillfed.io/packages/wagtail-factories","md":"https://skillfed.io/packages/wagtail-factories.md","pypi":"https://pypi.org/project/wagtail-factories/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-04","license_spdx":null,"license_treatment":"permissive","name":"wagtail-factories","python_support":"supports_current","summary":"Factory boy classes for wagtail"},"popularity":{"monthly_downloads":533011,"position":6143,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.5.0"}
