$npx skillfedfor your agent

wagtail-factories

Factory boy classes for wagtail

Worth itPyPI TestingReleased Jun 2026533.0K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — wagtail_factories-4.5.0-py3-none-any.whl
v4.5.0 · released 2026-06-04 · Python >=3.10 · 2 runtime deps: factory-boy, wagtail

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; wagtail and factory-boy must be installed.
  • Low friction install with just two runtime dependencies (factory-boy and wagtail).
  • Actively maintained with a recent release and steady commit activity.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.

last release 2026-06-04 (71 days) · last repo commit 2026-06-04 · 113 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 533,011 downloads/mo, #6,143 on PyPI

Verify before relying

pip install wagtail-factories

import wagtail_factories
from factory import SubFactory

class MyPageFactory(wagtail_factories.PageFactory):
    body = wagtail_factories.StreamFieldFactory({
        'text': SubFactory(wagtail_factories.CharBlockFactory),
    })
    class Meta:
        model = MyPage

page = MyPageFactory(title="Test Page")
  • Whether the package supports Wagtail versions beyond 7, given the classifier lists only Wagtail :: 7.
  • Whether nested StreamBlock factories work reliably in all use cases, as the documentation notes this was added in version 3.0.
Same gist for agents: .md · .json

What it is and what it does

wagtail-factories is a testing utility that extends factory-boy to generate Wagtail CMS objects—pages, content blocks, and StreamField values—for 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.

The 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

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.

Install

wagtail-factories on PyPI

Before you install

Low friction install with just two runtime dependencies (factory-boy and wagtail). Actively maintained with a recent release and steady commit activity.

Requires Python 3.10 or later; wagtail and factory-boy must be installed.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.

Quickstart

pip install wagtail-factories

import wagtail_factories
from factory import SubFactory

class MyPageFactory(wagtail_factories.PageFactory):
    body = wagtail_factories.StreamFieldFactory({
        'text': SubFactory(wagtail_factories.CharBlockFactory),
    })
    class Meta:
        model = MyPage

page = MyPageFactory(title="Test Page")

Verify before relying

  • Whether the package supports Wagtail versions beyond 7, given the classifier lists only Wagtail :: 7.
  • Whether nested StreamBlock factories work reliably in all use cases, as the documentation notes this was added in version 3.0.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
factory-boywagtail
MaintenanceActively maintained 71 days since the last release
Last repo commit
First released
Downloads533,011 / month, #6,143 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableFramework :: DjangoFramework :: Django :: 4.2Framework :: Django :: 5.2Framework :: Django :: 6.0Framework :: WagtailFramework :: Wagtail :: 7Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Evidence: wagtail_factories-4.5.0-py3-none-any.whl

Tags

Capabilities
wagtail test fixturesfactory boy wagtailwagtail mock data generationwagtail page factorystreamfield test factorywagtail cms testingwagtail block factories
Topics
wagtailtestingfixtures

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “wagtail test fixtures”

  • wagtail-factoriesProvides factory-boy classes for generating test fixtures and mock…
  • wagtail-modeladminAdds Django model administration interfaces to Wagtail's admin panel,…
  • wagtail-localizeWagtail Localize is a translation plugin for Wagtail CMS that enables…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also factory-boy · pytest-factoryboy · wagtail · async-factory-boy · wagtailmedia · types-factory-boy · wagtail-modeladmin · model-mommy · wagtail-localize · fake-factory