Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

[PyUP] Update pytest-factoryboy to 2.3.1 #600

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pyup-bot
Copy link
Collaborator

This PR updates pytest-factoryboy from 2.0.1 to 2.3.1.

Changelog

2.3.1

----------
- Fix AttributeError when using LazyFixture in register(...) `159 <https://github.com/pytest-dev/pytest-factoryboy/issues/159>`_ `#158 <https://github.com/pytest-dev/pytest-factoryboy/issues/158>`_

2.3.0

----------
- Add support for ``factory.PostGenerationMethodCall`` `103 <https://github.com/pytest-dev/pytest-factoryboy/pull/103>`_ `#87 <https://github.com/pytest-dev/pytest-factoryboy/issues/87>`_.

2.2.1

----------
- ``register()`` decorator now refuses kwargs after the initial specialization. This behaviour was mistakenly introduced in version 2.2.0, and it complicates the usage of the ``register`` function unnecessarily. For example, the following is not allowed anymore:

.. code-block:: python

  INVALID
 register(
     _name="second_author",
     name="C.S. Lewis",
 )(
     AuthorFactory,
     register_user="cs_lewis",
     register_user__password="Aslan1",
 )

  VALID
 register(
     AuthorFactory,
     _name="second_author",
     name="C.S. Lewis",
     register_user="cs_lewis",
     register_user__password="Aslan1",
 )

2.2.0

----------
- Drop support for Python 3.6. We now support only python >= 3.7.
- Improve "debuggability". Internal pytest-factoryboy calls are now visible when using a debugger like PDB or PyCharm.
- Add type annotations. Now ``register`` and ``LazyFixture`` are type annotated.
- Fix `Factory._after_postgeneration <https://factoryboy.readthedocs.io/en/stable/reference.html#factory.Factory._after_postgeneration>`_ method not getting the evaluated ``post_generations`` and ``RelatedFactory`` results correctly in the ``result`` param.
- Factories can now be registered inside classes (even nested classes) and they won't pollute the module namespace.
- Allow the ``register`` decorator to be called with parameters:

.. code-block:: python

 register
 register("other_author")
 class AuthorFactory(Factory):
     ...

2.1.0

-----

- Add support for factory_boy >= 3.2.0
- Drop support for Python 2.7, 3.4, 3.5. We now support only python >= 3.6.
- Drop support for pytest < 4.6. We now support only pytest >= 4.6.
- Add missing versions of python (3.9 and 3.10) and pytest (6.x.x) to the CI test matrix.

2.0.3

-----

- Fix compatibility with pytest 5.

2.0.2

-----

- Fix warning `use of getfuncargvalue is deprecated, use getfixturevalue` (sliverc)
Links

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant