{
"info": {
"author": "F\u00e1bio Mac\u00eado Mendes",
"author_email": "fabiomacedomendes@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Topic :: Software Development :: Libraries"
],
"description": "There are two excellent options for createing fixtures for your Django tests:\n`Model Mommy ` and\n`Factory Boy `, (which were inspired in their\nRuby counterparts `Object Daddy ` and\n`Factory Girl `).\n\nWhile Model Mommy feels lighter and requires absolutely no boilerplate for the\nsimple cases, Factory Boy is more flexible and have more advanced features that\nmight be necessary complex use cases. Which one is better for your project? Why\nnot both? ;-)\n\nEnters Mommy's Boy\n==================\n\nMommy's Boy uses both Model Mommy and Factory Boy under the hood so you can\nbenefit from both libraries and choose the interface that is more suitable to\neach sittuation.\n\nFor really simple needs, we can use the `make()` and `prepare()` functions of\nModel Mommy's API:\n\n>>> from mommys_boy import mommy\n>>> from django.contrib.auth.models import User\n>>> user = mommy.make(User, first_name='John')\n\nMommy's boy leverages both Fake Factory and Model Mommy to automatically fill\nup your model's fields. It tries to use meaningful values by matching a field's\nname to the corresponding `Fake Factory ` function.\nYou can also pass explicit values such as ``first_name='John'`` in our example.\n\n>>> user.first_name\n'John'\n>>> user.last_name # Chosen randomly from the fake.last_name() function\n'McLovin'\n\nModel Mommy fills any required field that does not match a function in Fake\nFactory with random data.\n\n\nFactoryBoy Integration\n----------------------\n\nWe can also use Fake Factory introspection and Model Mommy's abilities within a\nFactory Boy factory::\n\n from mommys_boy import DjangoMommyFactory\n from django.contrib.auth.models import User\n\n\n class UserFactory(DjangoMommyFactory):\n class Meta:\n model = User\n\n last_name = 'Smith'\n\n\nNow we can use the `.create()` and `.build()` functions to create instances of\nthe User class.\n\n>>> user = UserFactory.create(email='foo@bar.com')\n>>> user.email\n'foo@bar.com'\n>>> user.first_name # this field were automatically filled by Fake Factory\n'Paul'\n>>> user.last_name\n'Smith'",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "http://github.com/fabiommendes/mommys_boy",
"keywords": null,
"license": "UNKNOWN",
"maintainer": null,
"maintainer_email": null,
"name": "mommys-boy",
"package_url": "https://pypi.org/project/mommys-boy/",
"platform": "any",
"project_url": "https://pypi.org/project/mommys-boy/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "http://github.com/fabiommendes/mommys_boy"
},
"release_url": "https://pypi.org/project/mommys-boy/0.1.1/",
"requires_dist": null,
"requires_python": null,
"summary": "A model factory for Django that leverages Model Mommy features in FactoryBoy.",
"version": "0.1.1"
},
"last_serial": 2354829,
"releases": {
"0.1.0": [
{
"comment_text": "",
"digests": {
"md5": "04359f0fecc5bafda69711641c8f5ea2",
"sha256": "9ad83c94b9c7f476a2e8d6b012a2d50f46983e48338c2fa132678e062690a519"
},
"downloads": -1,
"filename": "mommys-boy-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "04359f0fecc5bafda69711641c8f5ea2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9513,
"upload_time": "2016-07-29T13:48:37",
"url": "https://files.pythonhosted.org/packages/cd/bb/4a6e10f37d928d0a3919854d7bfdd5137464fd790fdce6aa77e3933fe46e/mommys-boy-0.1.0.tar.gz"
}
],
"0.1.1": [
{
"comment_text": "",
"digests": {
"md5": "90aa72106a886b9943d1567479c3e56c",
"sha256": "d004d0688c928a8dd7e82ca5f8ab8fa3e8b3636a3f3d21e0ed3795047f190037"
},
"downloads": -1,
"filename": "mommys-boy-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "90aa72106a886b9943d1567479c3e56c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10753,
"upload_time": "2016-09-21T11:59:13",
"url": "https://files.pythonhosted.org/packages/e9/bf/4385677fda9a2334c4df7a28b5b1b5b1c03b88508d580c2918023ecee64e/mommys-boy-0.1.1.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "90aa72106a886b9943d1567479c3e56c",
"sha256": "d004d0688c928a8dd7e82ca5f8ab8fa3e8b3636a3f3d21e0ed3795047f190037"
},
"downloads": -1,
"filename": "mommys-boy-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "90aa72106a886b9943d1567479c3e56c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10753,
"upload_time": "2016-09-21T11:59:13",
"url": "https://files.pythonhosted.org/packages/e9/bf/4385677fda9a2334c4df7a28b5b1b5b1c03b88508d580c2918023ecee64e/mommys-boy-0.1.1.tar.gz"
}
]
}