Factory-boy

Latest version: v3.3.0

Safety actively analyzes 630052 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 8

2.3.1

------------------

*Bug fix:*

- Fix badly written assert containing state-changing code, spotted by ``chsigi`` (:pr:`126`)
- Don't crash when handling objects whose ``__repr__`` is non-pure-ASCII bytes on Python 2,
discovered by `mbertheau <https://github.com/mbertheau>`_ (:issue:`123`) and `strycore <https://github.com/strycore>`_ (:pr:`127`)

2.3.0

------------------

*New:*

- Add :class:`~factory.fuzzy.FuzzyText`, thanks to `jdufresne <https://github.com/jdufresne>`_ (:pr:`97`)
- Add :class:`~factory.fuzzy.FuzzyDecimal`, thanks to `thedrow <https://github.com/thedrow>`_ (:pr:`94`)
- Add support for :class:`~mongoengine.EmbeddedDocument`, thanks to `imiric <https://github.com/imiric>`_ (:pr:`100`)

2.2.1

------------------

*Bug fix:*

- Fixed sequence counter for :class:`~factory.django.DjangoModelFactory` when a factory
inherits from another factory relating to an abstract model.

2.2.0

------------------

*Bug fix:*

- Removed duplicated :class:`~factory.alchemy.SQLAlchemyModelFactory` lurking in :mod:`factory`
(:pr:`83`)
- Properly handle sequences within object inheritance chains.
If ``FactoryA`` inherits from ``FactoryB``, and their associated classes
share the same link, sequence counters will be shared (:issue:`93`)
- Properly handle nested :class:`~factory.SubFactory` overrides

*New:*

- The :class:`~factory.django.DjangoModelFactory` now supports the ``FACTORY_FOR = 'myapp.MyModel'``
syntax, making it easier to shove all factories in a single module (:issue:`66`).
- Add :meth:`factory.debug()` helper for easier backtrace analysis
- Adding factory support for mongoengine with :class:`~factory.mongoengine.MongoEngineFactory`.

2.1.2

------------------

*New:*

- The :class:`~factory.Factory.ABSTRACT_FACTORY` keyword is now optional, and automatically set
to ``True`` if neither the :class:`~factory.Factory` subclass nor its parent declare the
:class:`~factory.Factory.FACTORY_FOR` attribute (:issue:`74`)

2.1.1

------------------

*Bug fix:*

- Properly retrieve the ``color`` keyword argument passed to :class:`~factory.django.ImageField`

Page 5 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.