Skip to content

dimanu-py/object-mother

Repository files navigation

Object Mother Sindri

Object Mother pattern for Python test data generation

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:

  • 🧪 Generate business-related test data via the Object Mother pattern
  • 🧰 Start from ready-made mothers for primitives and identifiers
  • 🧩 Compose complex test data by combining multiple mothers
  • 🔄 Reproduce test scenarios with seeded random data
💧
Created with Instant Python
This project was generated using Instant Python, a fast, easy and reliable project generator for Python projects.

Fast Kickstart

pip install object-mother-sindri      # includes faker for test data

Generate random test data for your tests:

from object_mother import IntegerPrimitivesMother, StringPrimitivesMother

random_age = IntegerPrimitivesMother.any()
random_name = StringPrimitivesMother.any()

Next Steps

ℹ️
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.

About

Object Mother pattern implementation for Python

Topics

Resources

License

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Contributors