{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/15"}],"enrichment":{"capability":"Creates dynamic Django model instances for testing without manual fixture setup, letting you generate test data with minimal boilerplate.","skillfed_tags":["django-testing","test-fixtures","orm-helpers"],"use_cases":["Writing unit tests for Django models where you need valid instances but don't care about most field values","Creating related objects in tests without nested fixture boilerplate","Generating multiple test instances quickly for bulk test data","Testing model methods and querysets where the test logic matters more than the data setup","Defining reusable test data patterns across a test suite using teach() to configure model generation rules"],"what_it_does":"Django Dynamic Fixture (DDF) is a test-data generation library that creates Django model instances on demand, saving you from writing repetitive fixture code. Instead of manually constructing test objects with all their required fields, you call G(Model) to generate a valid instance with sensible random defaults, then override only the fields that matter for your test. It handles relationships, foreign keys, and nested object creation through a simple dot-notation syntax, and provides utilities like M() for masked random strings and teach() to define reusable generation rules.\n\nThe library is designed to keep test code readable and maintainable by letting you focus on test logic rather than data setup. It works with Django's ORM directly and integrates into your existing test suite without special configuration.","worth_installing":"Yes, if you write Django tests. DDF has no runtime dependencies, low install friction, and a stable track record since its first release in 2011. The dormant maintenance status is acceptable for a mature library\u2014it does one thing well and doesn't require frequent updates. Install it if you want to reduce test boilerplate; skip it only if your project uses minimal fixtures or a different test-data strategy."},"id":"django-dynamic-fixture","links":{"html":"https://skillfed.io/packages/django-dynamic-fixture","md":"https://skillfed.io/packages/django-dynamic-fixture.md","pypi":"https://pypi.org/project/django-dynamic-fixture/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-09-15","license_spdx":null,"license_treatment":"permissive","name":"django-dynamic-fixture","python_support":"unspecified","summary":"A full library to create dynamic model instances for testing purposes."},"popularity":{"monthly_downloads":162576,"position":10596,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.0.1"}
