Factory-boy

Latest version: v3.3.1

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

Scan your dependencies

Page 3 of 8

2.9.2

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

*Bug fix:*

- Fix declaration corruption bug when a factory defined `foo__bar__baz=1` and a caller
provided a `foo__bar=x` parameter at call time: this got merged into the factory's base
declarations.

2.9.1

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

*Bug fix:*

- Fix packaging issues (see https://github.com/zestsoftware/zest.releaser/issues/212)
- Don't crash when debugging PostGenerationDeclaration

2.9.0

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

This version brings massive changes to the core engine, thus reducing the number of
corner cases and weird behaviors.

*New:*

- :issue:`275`: `factory.fuzzy` and `factory.faker` now use the same random seed.
- Add :class:`factory.Maybe`, which chooses among two possible declarations based
on another field's value (powers the :class:`~factory.Trait` feature).
- :class:`~factory.PostGenerationMethodCall` only allows to pass one positional argument; use keyword arguments for
extra parameters.

*Deprecation:*

- `factory.fuzzy.get_random_state` is deprecated, `factory.random.get_random_state` should be used instead.
- `factory.fuzzy.set_random_state` is deprecated, `factory.random.set_random_state` should be used instead.
- `factory.fuzzy.reseed_random` is deprecated, `factory.random.reseed_random` should be used instead.

2.8.1

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

*Bug fix:*

- Fix packaging issues.

2.8.0

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

*New:*

- :issue:`240`: Call post-generation declarations in the order they were declared,
thanks to `Oleg Pidsadnyi <https://github.com/olegpidsadnyi>`_.
- :issue:`309`: Provide new options for SQLAlchemy session persistence

*Bug fix:*

- :issue:`334`: Adjust for the package change in ``faker``

2.7.0

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

*New:*

- :pr:`267`: Add :class:`factory.LazyFunction` to remove unneeded lambda parameters,
thanks to `Hervé Cauwelier <https://github.com/bors-ltd>`_.
- :issue:`251`: Add :ref:`parameterized factories <parameters>` and :class:`traits <factory.Trait>`
- :pr:`256`, :pr:`292`: Improve error messages in corner cases

*Removed:*

- :pr:`278`: Formally drop support for Python2.6

.. warning:: Version 2.7.0 moves all error classes to
`factory.errors`. This breaks existing import statements
for any error classes except those importing
`FactoryError` directly from the `factory` module.

Page 3 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.