Contents

factory_boy - A test fixtures replacement for Python

0

A versatile test fixtures replacement based on thoughtbot's factory_bot for Ruby.

A versatile test fixtures replacement based on thoughtbot's factory_bot for Ruby.

Stars: 3773, Watchers: 3773, Forks: 411, Open Issues: 205

The FactoryBoy/factory_boy repo was created 14 years ago and the last code push was 1 months ago.
The project is very popular with an impressive 3773 github stars!

How to Install factory-boy

You can install factory-boy using pip

pip install factory-boy

or add it to a project with poetry

poetry add factory-boy

Package Details

Author
Mark Sandstrom
License
MIT
Homepage
https://github.com/FactoryBoy/factory_boy
PyPi:
https://pypi.org/project/factory-boy/
GitHub Repo:
https://github.com/FactoryBoy/factory_boy

Classifiers

  • Software Development/Libraries/Python Modules
  • Software Development/Testing
No  factory-boy  pypi packages just yet.

Errors

A list of common factory-boy errors.

Code Examples

Here are some factory-boy code examples and snippets.

GitHub Issues

The factory-boy package has 205 open issues on GitHub

  • Fix: transformer trait override Issue 1119
  • feat: Add Meta.literal_keys option
  • feat: Support nested declarations in fuzzy attributes
  • Bump actions/checkout from 5 to 6 in the github_actions group
  • feat: Export SKIP sentinel for excluding keys from DictFactory
  • feat: Add Excluding declaration and Faker unique parameter
  • Sentinel object for excluding items in DictFactory
  • Ability to exclude previous values from next model generation
  • Transformer not used with trait and value override
  • Is there a way to disable "deep context" for a factory?
  • Implements bulk_create for create_batch if available

See more issues on GitHub

Related Packages & Articles