Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump factory-boy from 3.2.1 to 3.3.0 #927

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 21, 2023

Bumps factory-boy from 3.2.1 to 3.3.0.

Changelog

Sourced from factory-boy's changelog.

3.3.0 (2023-07-19)

New:

- :issue:`366`: Add :class:`factory.django.Password` to generate Django :class:`~django.contrib.auth.models.User`
  passwords.
- :issue:`304`: Add :attr:`~factory.alchemy.SQLAlchemyOptions.sqlalchemy_session_factory` to dynamically
  create sessions for use by the :class:`~factory.alchemy.SQLAlchemyModelFactory`.
- Add support for Django 4.0
- Add support for Django 4.1
- Add support for Python 3.10
- Add support for Python 3.11

Bugfix:

- Make :meth:`~factory.django.mute_signals` mute signals during post-generation.
  • :issue:775: Change the signature for :meth:~factory.alchemy.SQLAlchemyModelFactory._save and :meth:~factory.alchemy.SQLAlchemyModelFactory._get_or_create to avoid argument names clashes with a field named session.

Deprecated:

- :class:`~factory.django.DjangoModelFactory` will stop issuing a second call to
  :meth:`~django.db.models.Model.save` on the created instance when :ref:`post-generation-hooks` return a value.

To help with the transition, :class:factory.django.DjangoModelFactory._after_postgeneration raises a :class:DeprecationWarning when calling :meth:~django.db.models.Model.save. Inspect your :class:~factory.django.DjangoModelFactory subclasses:

  • If the :meth:~django.db.models.Model.save call is not needed after :class:~factory.PostGeneration, set :attr:factory.django.DjangoOptions.skip_postgeneration_save to True in the factory meta.

  • Otherwise, the instance has been modified by :class:~factory.PostGeneration hooks and needs to be :meth:~django.db.models.Model.save\ d. Either:

    • call :meth:django.db.models.Model.save in the :class:~factory.PostGeneration hook that modifies the instance, or
    • override :class:~factory.django.DjangoModelFactory._after_postgeneration to :meth:~django.db.models.Model.save the instance.

Removed:

- Drop support for Django 2.2
- Drop support for Django 3.0
- Drop support for Django 3.1
- Drop support for Python 3.6
Commits
  • 38ecbae Preparing release 3.3.0
  • f52d6cd Introduce Transformer.Force
  • 5433048 Handle declarations in Transformers
  • d498bcd Factor "unwrapped evaluation" of declarations.
  • 53b34d5 Remove zip_safe flag from setup.cfg
  • 2b0efa7 Upgrade intersphinx mapping for Sphinx 8
  • 3c59001 Merge tag '3.2.1' into master
  • f12bf9b Skip post-generation save in test_class_decorator_related_model_with_post_hook
  • de8d51e Add changelog entry for #1004
  • 834afc1 Reuse existing models
  • Additional commits viewable in compare view

Dependabot compatibility score

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Bumps [factory-boy](https://github.com/FactoryBoy/factory_boy) from 3.2.1 to 3.3.0.
- [Changelog](https://github.com/FactoryBoy/factory_boy/blob/master/docs/changelog.rst)
- [Commits](FactoryBoy/factory_boy@3.2.1...3.3.0)

---
updated-dependencies:
- dependency-name: factory-boy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from a team as a code owner August 21, 2023 13:31
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Aug 21, 2023
@coveralls
Copy link

Pull Request Test Coverage Report for Build 5926952175

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 99.816%

Totals Coverage Status
Change from base Build 5857593264: 0.0%
Covered Lines: 4341
Relevant Lines: 4349

💛 - Coveralls

@fmrsabino fmrsabino merged commit cda0b26 into main Aug 24, 2023
15 checks passed
@fmrsabino fmrsabino deleted the dependabot/pip/factory-boy-3.3.0 branch August 24, 2023 17:38
@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants