https://github.com/jamescooke/factory_djoy
Factories for Django, creating valid model instances every time
https://github.com/jamescooke/factory_djoy
django factories python testing
Last synced: 4 months ago
JSON representation
Factories for Django, creating valid model instances every time
- Host: GitHub
- URL: https://github.com/jamescooke/factory_djoy
- Owner: jamescooke
- License: mit
- Created: 2016-05-27T17:47:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-02-23T19:59:15.000Z (over 3 years ago)
- Last Synced: 2025-09-14T10:26:28.324Z (9 months ago)
- Topics: django, factories, python, testing
- Language: Python
- Homepage: https://factory-djoy.readthedocs.io/
- Size: 254 KB
- Stars: 27
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
Awesome Lists containing this project
README
.. image:: https://img.shields.io/github/actions/workflow/status/jamescooke/factory_djoy/build.yml?branch=master
:alt: GitHub Workflow Status
:target: https://github.com/jamescooke/factory_djoy/actions?query=branch%3Amaster
.. image:: https://img.shields.io/readthedocs/factory-djoy.svg
:alt: Read the Docs
:target: https://factory-djoy.readthedocs.io/
.. image:: https://img.shields.io/pypi/v/factory-djoy.svg
:alt: PyPI version
:target: https://pypi.org/project/factory-djoy/
.. image:: https://img.shields.io/pypi/pyversions/factory-djoy.svg
:alt: Python version
:target: https://pypi.org/project/factory-djoy/
.. image:: https://img.shields.io/pypi/djversions/factory-djoy
:alt: PyPI - Django Version
:target: https://pypi.org/project/factory-djoy/
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
:alt: factory-djoy is licensed under the MIT License
:target: https://raw.githubusercontent.com/jamescooke/factory_djoy/master/LICENSE
Factory Djoy
============
Factories for Django, creating valid model instances every time.
Factory Djoy provides two simple classes, ``UserFactory`` and
``CleanModelFactory``, which wrap Factory Boy. They call ``full_clean()`` when
creating Django model instances to ensure that only valid data enters your
Django database.
Compatibility
-------------
Factory Djoy is compatible with:
* Django 2.2, 3.0 and 3.1
* Python 3 (3.7, 3.8, 3.9, 3.10, 3.11)
* Factory Boy version 2.11 or greater.
Resources
---------
* `Documentation on ReadTheDocs `_
* `Package on PyPI `_
* `Source code on GitHub `_
* `Licensed on MIT `_
* `Changelog `_