Easy use and customizable implementation for the Object Mother pattern.
Getting Started • Object Mother Pattern
|
Sindri object mother replaces ad hoc test data with a consistent Object Mother toolkit.
Generate realistic test data for your domain objects with a simple and focused API.
Why use it? Generating test data with Sindri lets you:
|
💧
Created with Instant Python
This project was generated using Instant Python, a fast, easy and reliable project generator for Python projects.
This project was generated using Instant Python, a fast, easy and reliable project generator for Python projects.
pip install object-mother-sindri # includes faker for test dataGenerate random test data for your tests:
from object_mother import IntegerPrimitivesMother, StringPrimitivesMother
random_age = IntegerPrimitivesMother.any()
random_name = StringPrimitivesMother.any()ℹ️
Learn More
To learn more about the object mother pattern, built-in mothers, and how to create custom mothers, visit the Object Mother Pattern section of the documentation.
To learn more about the object mother pattern, built-in mothers, and how to create custom mothers, visit the Object Mother Pattern section of the documentation.