Skip to content

Commit

Permalink
Update CHANGES.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
youtux committed May 2, 2022
1 parent afbc510 commit bdd690c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@ Unreleased
----------
- 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 `_after_postgeneration` not getting the evaluated post_generations and RelatedFactory results correctly in the `result` param.
- 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
Expand Down

0 comments on commit bdd690c

Please sign in to comment.