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.0 #597

Closed

Conversation

pyup-bot
Copy link
Collaborator

This PR updates pytest-factoryboy from 2.0.1 to 2.3.0.

Changelog

2.2.1

----------
- ``register()`` decorator now refuses kwargs after the initial specialization. This behaviour was mistakenly introduced in version 2.2.0, and it compicates the usage of the ``register`` function uncecessarily. 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

@pyup-bot
Copy link
Collaborator Author

Closing this in favor of #600

@pyup-bot pyup-bot closed this May 21, 2022
@noirbizarre noirbizarre deleted the pyup/update-pytest-factoryboy-2.0.1-to-2.3.0 branch May 21, 2022 21:45
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