Skip to main content

Object Mother pattern implementation for Python

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

object_mother_sindri-0.1.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

object_mother_sindri-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file object_mother_sindri-0.1.0.tar.gz.

File metadata

  • Download URL: object_mother_sindri-0.1.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for object_mother_sindri-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0b48c7331f58a96807c90bcb1c0be80ec8c5e9959367ab7d3192c9fe081b82f9
MD5 b0a269c348a93d59a3c757e522f720b6
BLAKE2b-256 d2b84c41fae579203343df5f9008a27ce2135937f6b4ef93d02d74d95fb5972b

See more details on using hashes here.

Provenance

The following attestation bundles were made for object_mother_sindri-0.1.0.tar.gz:

Publisher: release.yml on dimanu-py/object-mother

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file object_mother_sindri-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for object_mother_sindri-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4be92ab8f274a6d56834c5c5100a76a3b4e1849c1ad95133b4d671e964389b7
MD5 daa154f766a7f0efc8bec3bb5cc53aa8
BLAKE2b-256 cccd3970e42074c77b534483b7c70caf3602e1fa5b8ee8fa1b4ed7bfbc9f1927

See more details on using hashes here.

Provenance

The following attestation bundles were made for object_mother_sindri-0.1.0-py3-none-any.whl:

Publisher: release.yml on dimanu-py/object-mother

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page