- Allow all types of declarations in :class:`factory.Faker` calls - enables references to other faker-defined attributes.
3.0.1 (2020-08-13)
Bug fix:
- :issue:`769`: Fix ``import factory; factory.django.DjangoModelFactory`` and similar calls.
3.0.0 (2020-08-12)
Breaking changes
""""""""""""""""
The following aliases were removed:
+------------------------------------------------+---------------------------------------------------+
| Broken alias | New import |
+================================================+===================================================+
| from factory import DjangoModelFactory | from factory.django import DjangoModelFactory |
+------------------------------------------------+---------------------------------------------------+
| from factory import MogoFactory | from factory.mogo import MogoFactory |
+------------------------------------------------+---------------------------------------------------+
| from factory.fuzzy import get_random_state | from factory.random import get_random_state |
+------------------------------------------------+---------------------------------------------------+
| from factory.fuzzy import set_random_state | from factory.random import set_random_state |
+------------------------------------------------+---------------------------------------------------+
| from factory.fuzzy import reseed_random | from factory.random import reseed_random |
+------------------------------------------------+---------------------------------------------------+
Removed:
- Drop support for Python 2 and 3.4. These versions `are not maintained anymore <https://devguide.python.org/devcycle/#end-of-life-branches>`__.
- Drop support for Django 2.0 and 2.1. These versions `are not maintained anymore <https://www.djangoproject.com/download/#supported-versions>`__.
- Remove deprecated ``force_flush`` from ``SQLAlchemyModelFactory`` options. Use
``sqlalchemy_session_persistence = "flush"`` instead.
- Drop deprecated ``attributes()`` from :class:`~factory.Factory` subclasses; use
``factory.make_factory(dict, FactoryClass._meta.pre_declarations)`` instead.
- Drop deprecated ``declarations()`` from :class:`~factory.Factory` subclasses; use ``FactoryClass._meta.pre_declarations`` instead.
- Drop ``factory.compat`` module.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on factory-boy to permit the latest version.
Changelog
Sourced from factory-boy's changelog.
... (truncated)
Commits
688820f
Preparing release 3.1.0eefd059
Restore wheel building.55460a5
Fix small README class inconsistencyf0a4ef0
Allow nesting declarations in Faker params.901a730
Back to development: 3.0.2cea134a
Preparing release 3.0.1efb5019
Hotfix: Fixfactory.django
aliases.80854c9
Back to development: 3.0.13b0b867
Preparing release 3.0.0decd1f3
Fix README's RST syntax.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)