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 pytest-factoryboy from 2.0.3 to 2.5.0 in /backend #2894

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 15, 2022

Bumps pytest-factoryboy from 2.0.3 to 2.5.0.

Changelog

Sourced from pytest-factoryboy's changelog.

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 <https://pytest-factoryboy.readthedocs.io/en/latest/#generic-container-classes-as-models>_ [#167](https://github.com/pytest-dev/pytest-factoryboy/issues/167) <https://github.com/pytest-dev/pytest-factoryboy/pull/167>_
  • Fix Factory._after_postgeneration being invoked twice. [#164](https://github.com/pytest-dev/pytest-factoryboy/issues/164) <https://github.com/pytest-dev/pytest-factoryboy/pull/164>_ [#156](https://github.com/pytest-dev/pytest-factoryboy/issues/156) <https://github.com/pytest-dev/pytest-factoryboy/issues/156>_
  • Stack traces caused by pytest-factoryboy are now slimmer. [#169](https://github.com/pytest-dev/pytest-factoryboy/issues/169) <https://github.com/pytest-dev/pytest-factoryboy/pull/169>_
  • Check for naming conflicts between factory and model fixture name, and raise a clear error immediately. [#86](https://github.com/pytest-dev/pytest-factoryboy/issues/86) <https://github.com/pytest-dev/pytest-factoryboy/pull/86>_

2.4.0

  • LazyFixture is now a Generic[T] type.
  • Simplify fixture generation (internal change).
  • Use poetry (internal change).

2.3.1

  • Fix AttributeError when using LazyFixture in register(...) [#159](https://github.com/pytest-dev/pytest-factoryboy/issues/159) <https://github.com/pytest-dev/pytest-factoryboy/issues/159>_ [#158](https://github.com/pytest-dev/pytest-factoryboy/issues/158) <https://github.com/pytest-dev/pytest-factoryboy/issues/158>_

2.3.0

  • Add support for factory.PostGenerationMethodCall [#103](https://github.com/pytest-dev/pytest-factoryboy/issues/103) <https://github.com/pytest-dev/pytest-factoryboy/pull/103>_ [#87](https://github.com/pytest-dev/pytest-factoryboy/issues/87) <https://github.com/pytest-dev/pytest-factoryboy/issues/87>_.

2.2.1

  • @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", )

2.2.0

... (truncated)

Commits
  • 78844d9 Bump version 2.5.0
  • 767e384 Update deps
  • 497557d Fix typing
  • da70476 Merge pull request #169 from pytest-dev/ab-slim-stacktrace
  • 626fac1 Create LICENSE.md
  • 8c52cb6 Merge remote-tracking branch 'origin/master' into ab-slim-stacktrace
  • 034f17c TypeVar for Box has to be covariant
  • 59050f7 Add changelog entry for #86
  • 63faf21 Add changelog entry
  • e79a64c Wrap the caller_locals in a Box object, so that stack traces are shorter
  • 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 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)

@vercel
Copy link

vercel bot commented Jun 15, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
pycon ❌ Failed (Inspect) Nov 20, 2022 at 5:29PM (UTC)
1 Ignored Deployment
Name Status Preview Comments Updated
association-frontend ⬜️ Ignored (Inspect) Nov 20, 2022 at 5:29PM (UTC)

@codecov
Copy link

codecov bot commented Jun 15, 2022

Codecov Report

Merging #2894 (d1a3aa7) into main (21166a1) will decrease coverage by 1.03%.
The diff coverage is 94.70%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2894      +/-   ##
==========================================
- Coverage   92.69%   91.66%   -1.04%     
==========================================
  Files         116      147      +31     
  Lines        2574     4031    +1457     
  Branches      247      415     +168     
==========================================
+ Hits         2386     3695    +1309     
- Misses        174      301     +127     
- Partials       14       35      +21     

Bumps [pytest-factoryboy](https://github.com/pytest-dev/pytest-factoryboy) from 2.0.3 to 2.5.0.
- [Release notes](https://github.com/pytest-dev/pytest-factoryboy/releases)
- [Changelog](https://github.com/pytest-dev/pytest-factoryboy/blob/master/CHANGES.rst)
- [Commits](pytest-dev/pytest-factoryboy@2.0.3...2.5.0)

---
updated-dependencies:
- dependency-name: pytest-factoryboy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 2, 2022

Superseded by #3147.

@dependabot dependabot bot closed this Dec 2, 2022
@dependabot dependabot bot deleted the dependabot/pip/backend/pytest-factoryboy-2.5.0 branch December 2, 2022 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants