Add polifactory to Testing:Object factory#2608
Merged
vinta merged 1 commit intovinta:masterfrom Jan 8, 2026
Merged
Conversation
|
Imagine you're building a Lego castle. You can use different Lego sets to make it, but each set has its own special pieces and instructions. This Python project is like a unique Lego set. It's made to help people with specific tasks, like answering questions or generating text. What makes it different from similar projects is the special combination of "Lego pieces" (code and tools) and "instructions" (how it's designed to work) that make it extra helpful and user-friendly. Just like how you might choose a Lego set that's just right for your castle, developers choose this Python project because it has the right combination of features and tools to help them build their own amazing things! |
Stormysmurf
approved these changes
Sep 2, 2024
Maggsb08
approved these changes
Sep 7, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this Python project?
A Factory or Mother library with mock data features
What's the difference between this Python project and similar ones?
It is somewhat similar to factory-boy (already listed) but I find it simpler with a softer initial learning curve.
I've been working with
factory-boyfor years and I am a big supporter butpolyfactorymakes it simpler to achieve the most common fixture generations.If you are starting with fixture generation I would recommend going to
polyfactoryfirst or at least taking a look and comparing it withfactory-boy, especially if you work with Pydantic.--
Anyone who agrees with this pull request could submit an Approve review to it.