Metadata-Version: 2.1
Name: model-bakery
Version: 1.4.0
Summary: Smart object creation facility for Django.
Home-page: https://github.com/model-bakers/model_bakery
Author: berinfontes
Author-email: bernardoxhc@gmail.com
License: Apache 2.0
Description: # Model Bakery: Smart fixtures for better tests
        
        *Model Bakery* offers you a smart way to create fixtures for testing in
        Django.
        With a simple and powerful API you can create many objects with a single
        line of code.
        
        Model Bakery is a rename of the legacy [Model Mommy project](https://pypi.org/project/model_mommy/).
        
        ![Tests](https://github.com/model-bakers/model_bakery/workflows/Tests/badge.svg)
        [![Latest PyPI version](https://img.shields.io/pypi/v/model_bakery.svg)](https://pypi.python.org/pypi/model_bakery/)
        [![Documentation Status](https://readthedocs.org/projects/model-bakery/badge/?version=latest)](https://model-bakery.readthedocs.io/en/latest/?badge=latest)
        
        ## Install
        
        ```bash
        pip install model_bakery
        ```
        
        ## Usage and Info
        
        ### Basic usage
        
        ```python
        
        # models.py
        
        class Customer(models.Model):
            enjoy_jards_macale = models.BooleanField()
            name = models.CharField(max_length=30)
            email = models.EmailField()
            age = models.IntegerField()
            bio = models.TextField()
            days_since_last_login = models.BigIntegerField()
            birthday = models.DateField()
            last_shopping = models.DateTimeField()
        
        # test_models.py
        
        from django.test import TestCase
        from model_bakery import baker
        from pprint import pprint
        
        class TestCustomerModel(TestCase):
            def setUp(self):
                self.customer = baker.make('shop.Customer')
                pprint(self.customer.__dict__)
        
        """
        {'_state': <django.db.models.base.ModelState object at 0x1129a3240>,
         'age': 3841,
         'bio': 'vUFzMUMyKzlnTyiCxfgODIhrnkjzgQwHtzIbtnVDKflqevczfnaOACkDNqvCHwvtWdLwoiKrCqfppAlogSLECtMmfleeveyqefkGyTGnpbkVQTtviQVDESpXascHAluGHYEotSypSiHvHzFteKIcUebrzUVigiOacfnGdvijEPrZdSCIIBjuXZMaWLrMXyrsUCdKPLRBRYklRdtZhgtxuASXdhNGhDsrnPHrYRClhrSJSVFojMkUHBvSZhoXoCrTfHsAjenCEHvcLeCecsXwXgWJcnJPSFdOmOpiHRnhSgRF',
         'birthday': datetime.date(2019, 12, 3),
         'enjoy_jards_macale': True,
         'id': 1,
         'last_shopping': datetime.datetime(2019, 12, 3, 21, 42, 34, 77019),
         'name': 'qiayYnESvqcYLLBzxpFOcGBIfnQEPx',
         'days_since_last_login': 6016}
        """
        
        ```
        
        Check out [documentation](<http://model-bakery.readthedocs.org/>) for more complete examples.
        
        ## Contributing
        
        Detailed info [here](https://github.com/model-bakers/model_bakery/blob/main/CONTRIBUTING.md).
        
        ## Maintainers
        
          - [Bernardo Fontes](https://github.com/berinhard/)
          - [Rustem Saiargaliev](https://github.com/amureki/)
          - [Tim Klein](https://github.com/timjklein36)
        
        ## Creator
        
          - [Vanderson Mota](https://github.com/vandersonmota/)
        
Keywords: django testing factory python
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 3.2
Classifier: Framework :: Django :: 4.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Description-Content-Type: text/markdown
