pytest-dev/pytest-factoryboy
### [`v2.5.1`](https://togithub.com/pytest-dev/pytest-factoryboy/blob/HEAD/CHANGES.rst#251)
[Compare Source](https://togithub.com/pytest-dev/pytest-factoryboy/compare/2.5.0...2.5.1)
- Fix PytestDeprecationWarning. `#180 `\_ `#179 `\_
### [`v2.5.0`](https://togithub.com/pytest-dev/pytest-factoryboy/blob/HEAD/CHANGES.rst#250)
[Compare Source](https://togithub.com/pytest-dev/pytest-factoryboy/compare/2.4.0...2.5.0)
- Using a generic class container like `dict`, `list`, `set`, etc. will raise a warning suggesting you to wrap your model using `named_model(...)`. Doing this will make sure that the fixture name is correctly chosen, otherwise SubFactory and RelatedFactory aren't able to determine the name of the model. See `Generic Container Classes as models `\_ `#167 `\_
- Fix `Factory._after_postgeneration` being invoked twice. `#164 `\_ `#156 `\_
- Stack traces caused by pytest-factoryboy are now slimmer. `#169 `\_
- Check for naming conflicts between factory and model fixture name, and raise a clear error immediately. `#86 `\_
### [`v2.4.0`](https://togithub.com/pytest-dev/pytest-factoryboy/blob/HEAD/CHANGES.rst#240)
[Compare Source](https://togithub.com/pytest-dev/pytest-factoryboy/compare/2.3.1...2.4.0)
- `LazyFixture` is now a Generic\[T] type.
- Simplify fixture generation (internal change).
- Use poetry (internal change).
### [`v2.3.1`](https://togithub.com/pytest-dev/pytest-factoryboy/blob/HEAD/CHANGES.rst#231)
- Fix AttributeError when using LazyFixture in register(...) `#159 `\_ `#158 `\_
### [`v2.3.0`](https://togithub.com/pytest-dev/pytest-factoryboy/blob/HEAD/CHANGES.rst#230)
- Add support for `factory.PostGenerationMethodCall` `#103 `\_ `#87 `\_.
### [`v2.2.1`](https://togithub.com/pytest-dev/pytest-factoryboy/blob/HEAD/CHANGES.rst#221)
- `@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",
)
### [`v2.2.0`](https://togithub.com/pytest-dev/pytest-factoryboy/blob/HEAD/CHANGES.rst#220)
- 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 `\_ 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):
...
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
==2.1.0
->==2.5.1
Release Notes
pytest-dev/pytest-factoryboy
### [`v2.5.1`](https://togithub.com/pytest-dev/pytest-factoryboy/blob/HEAD/CHANGES.rst#251) [Compare Source](https://togithub.com/pytest-dev/pytest-factoryboy/compare/2.5.0...2.5.1) - Fix PytestDeprecationWarning. `#180Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.