Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

chore(deps-dev): bump the pytest group with 5 updates #1047

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 16, 2024

Bumps the pytest group with 5 updates:

Package From To
pytest 7.4.0 8.1.1
pytest-django 4.5.2 4.8.0
pytest-env 0.6.2 1.1.3
pytest-mock 3.7.0 3.14.0
pytest-randomly 3.12.0 3.15.0

Updates pytest from 7.4.0 to 8.1.1

Release notes

Sourced from pytest's releases.

8.1.1

pytest 8.1.1 (2024-03-08)

::: {.note} ::: {.title} Note :::

This release is not a usual bug fix release -- it contains features and improvements, being a follow up to 8.1.0, which has been yanked from PyPI. :::

Features

  • #11475: Added the new consider_namespace_packages{.interpreted-text role="confval"} configuration option, defaulting to False.

    If set to True, pytest will attempt to identify modules that are part of namespace packages when importing modules.

  • #11653: Added the new verbosity_test_cases{.interpreted-text role="confval"} configuration option for fine-grained control of test execution verbosity. See Fine-grained verbosity <pytest.fine_grained_verbosity>{.interpreted-text role="ref"} for more details.

Improvements

  • #10865: pytest.warns{.interpreted-text role="func"} now validates that warnings.warn{.interpreted-text role="func"} was called with a [str]{.title-ref} or a [Warning]{.title-ref}. Currently in Python it is possible to use other types, however this causes an exception when warnings.filterwarnings{.interpreted-text role="func"} is used to filter those warnings (see [CPython #103577](python/cpython#103577) for a discussion). While this can be considered a bug in CPython, we decided to put guards in pytest as the error message produced without this check in place is confusing.

  • #11311: When using --override-ini for paths in invocations without a configuration file defined, the current working directory is used as the relative directory.

    Previoulsy this would raise an AssertionError{.interpreted-text role="class"}.

  • #11475: --import-mode=importlib <import-mode-importlib>{.interpreted-text role="ref"} now tries to import modules using the standard import mechanism (but still without changing :pysys.path{.interpreted-text role="data"}), falling back to importing modules directly only if that fails.

    This means that installed packages will be imported under their canonical name if possible first, for example app.core.models, instead of having the module name always be derived from their path (for example .env310.lib.site_packages.app.core.models).

  • #11801: Added the iter_parents() <_pytest.nodes.Node.iter_parents>{.interpreted-text role="func"} helper method on nodes. It is similar to listchain <_pytest.nodes.Node.listchain>{.interpreted-text role="func"}, but goes from bottom to top, and returns an iterator, not a list.

  • #11850: Added support for sys.last_exc{.interpreted-text role="data"} for post-mortem debugging on Python>=3.12.

  • #11962: In case no other suitable candidates for configuration file are found, a pyproject.toml (even without a [tool.pytest.ini_options] table) will be considered as the configuration file and define the rootdir.

  • #11978: Add --log-file-mode option to the logging plugin, enabling appending to log-files. This option accepts either "w" or "a" and defaults to "w".

    Previously, the mode was hard-coded to be "w" which truncates the file before logging.

... (truncated)

Commits
  • 81653ee Adjust changelog manually for 8.1.1
  • e60b4b9 Prepare release version 8.1.1
  • 15fbe57 [8.1.x] Revert legacy path removals (#12093)
  • 86c3aab [8.1.x] Do not import duplicated modules with --importmode=importlib (#12077)
  • 5b82b0c [8.1.x] Yank version 8.1.0 (#12076)
  • 0a53681 Merge pull request #12054 from pytest-dev/release-8.1.0
  • b9a167f Prepare release version 8.1.0
  • 00043f7 Merge pull request #12038 from bluetech/fixtures-rm-arg2index
  • f4e1025 Merge pull request #12048 from bluetech/fixture-teardown-excgroup
  • 43492f5 Merge pull request #12051 from jakkdl/test_debugging_pythonbreakpoint
  • Additional commits viewable in compare view

Updates pytest-django from 4.5.2 to 4.8.0

Release notes

Sourced from pytest-django's releases.

4.8.0

https://pytest-django.readthedocs.io/en/latest/changelog.html#v4-8-0-2024-01-30

4.7.0

https://pytest-django.readthedocs.io/en/latest/changelog.html#v4-7-0-2023-11-08

4.6.0

https://pytest-django.readthedocs.io/en/latest/changelog.html#v4-6-0-2023-10-30

Changelog

Sourced from pytest-django's changelog.

v4.8.0 (2024-01-30)

Improvements ^^^^^^^^^^^^

  • Added pytest_django.asserts.assertMessages() to mimic the behaviour of the :meth:~django.contrib.messages.test.MessagesTestMixin.assertMessages method for Django versions >= 5.0.

Bugfixes ^^^^^^^^

  • Fix --help/--version crash in a partially configured app.

v4.7.0 (2023-11-08)

Compatibility ^^^^^^^^^^^^^

  • Official Django 5.0 support.

  • Official Python 3.12 support.

Improvements ^^^^^^^^^^^^

  • The Django test tags from the previous release now works on any :class:~django.test.SimpleTestCase (i.e. any Django test framework test class), not just :class:~django.test.TransactionTestCase classes.

  • Some improvements for those of us who like to type their tests:

    • Add pytest_django.DjangoAssertNumQueries for typing :fixture:django_assert_num_queries and :fixture:django_assert_max_num_queries.

    • Add pytest_django.DjangoCaptureOnCommitCallbacks for typing :fixture:django_capture_on_commit_callbacks.

    • Add pytest_django.DjangoDbBlocker for typing :fixture:django_db_blocker.

v4.6.0 (2023-10-30)

Compatibility

... (truncated)

Commits
  • 49b98d1 Release 4.8.0
  • 7c04917 django_username_field example should use create_user not create
  • 0b42a93 Added assertMessages() from django.contrib.messages. (#1109)
  • 5283aa4 Fix --help/--version crash in a partially configured app
  • d0d22ba Remove redundant _setup_django call in django_test_environment
  • 6cf63b6 Upgrade GitHub Action setup-python (#1103)
  • 523c8d5 Remove MANIFEST.in file
  • 72080ad tests: make it possible to run without setting PYTHONPATH=$(pwd)
  • b17b7bc tests: make variable faithful to its name
  • 12cf877 Avoid mutable global state in SettingsWrapper
  • Additional commits viewable in compare view

Updates pytest-env from 0.6.2 to 1.1.3

Release notes

Sourced from pytest-env's releases.

1.1.3

What's Changed

New Contributors

Full Changelog: pytest-dev/pytest-env@1.1.2...1.1.3

1.1.2

Full Changelog: pytest-dev/pytest-env@1.1.1...1.1.2

1.1.1

What's Changed

Full Changelog: pytest-dev/pytest-env@1.1.0...1.1.1

1.1.0

What's Changed

New Contributors

Full Changelog: pytest-dev/pytest-env@1.0.1...1.1.0

1.0.1

What's Changed

New Contributors

Full Changelog: pytest-dev/pytest-env@1.0.0...1.0.1

... (truncated)

Commits

Updates pytest-mock from 3.7.0 to 3.14.0

Release notes

Sourced from pytest-mock's releases.

v3.14.0

  • #415: MockType and AsyncMockType can be imported from pytest_mock for type annotation purposes.
  • #420: Fixed a regression which would cause mocker.patch.object to not being properly cleared between tests.

v3.13.0

  • #417: spy now has spy_return_list, which is a list containing all the values returned by the spied function.
  • pytest-mock now requires pytest>=6.2.5.
  • #410: pytest-mock's setup.py file is removed. If you relied on this file, e.g. to install pytest using setup.py install, please see Why you shouldn't invoke setup.py directly for alternatives.

v3.12.0

  • Added support for Python 3.12.
  • Dropped support for EOL Python 3.7.
  • mocker.resetall() now also resets mocks created by mocker.create_autospec (#390).

v3.11.1

  • Fixed introspection for failed assert_has_calls (#365).

  • Updated type annotations for mocker.patch and mocker.spy (#364).

v3.10.0

  • Added new mocker.stop(m) method to stop specific mocker.patch or mocker.spy calls (#319).

v3.9.0

  • Expose NonCallableMagicMock via the mocker fixture (#318).

v3.8.2

  • Fixed AsyncMock support for Python 3.7+ in mocker.async_stub (#302).

v3.8.1

  • Fix regression caused by an explicit mock dependency in the code (#298).

v3.8.0

Changelog

Sourced from pytest-mock's changelog.

3.14.0 (2024-03-21)

  • [#415](https://github.com/pytest-dev/pytest-mock/issues/415) <https://github.com/pytest-dev/pytest-mock/pull/415>_: MockType and AsyncMockType can be imported from pytest_mock for type annotation purposes.

  • [#420](https://github.com/pytest-dev/pytest-mock/issues/420) <https://github.com/pytest-dev/pytest-mock/issues/420>_: Fixed a regression which would cause mocker.patch.object to not being properly cleared between tests.

3.13.0 (2024-03-21)

  • [#417](https://github.com/pytest-dev/pytest-mock/issues/417) <https://github.com/pytest-dev/pytest-mock/pull/417>_: spy now has spy_return_list, which is a list containing all the values returned by the spied function.
  • pytest-mock now requires pytest>=6.2.5.
  • [#410](https://github.com/pytest-dev/pytest-mock/issues/410) <https://github.com/pytest-dev/pytest-mock/pull/410>: pytest-mock's setup.py file is removed. If you relied on this file, e.g. to install pytest using setup.py install, please see Why you shouldn't invoke setup.py directly <https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html#summary> for alternatives.

3.12.0 (2023-10-19)

  • Added support for Python 3.12.
  • Dropped support for EOL Python 3.7.
  • mocker.resetall() now also resets mocks created by mocker.create_autospec ([#390](https://github.com/pytest-dev/pytest-mock/issues/390)_).

.. _#390: pytest-dev/pytest-mock#390

3.11.1 (2023-06-15)

(This release source code is identical to 3.11.0 except a small internal fix to deployment/CI)

  • Fixed introspection for failed assert_has_calls ([#365](https://github.com/pytest-dev/pytest-mock/issues/365)_).

  • Updated type annotations for mocker.patch and mocker.spy ([#364](https://github.com/pytest-dev/pytest-mock/issues/364)_).

.. _#365: pytest-dev/pytest-mock#365 .. _#364: pytest-dev/pytest-mock#364

3.11.0 (2023-06-15)

  • Fixed introspection for failed assert_has_calls ([#365](https://github.com/pytest-dev/pytest-mock/issues/365)_).

  • Updated type annotations for mocker.patch and mocker.spy ([#364](https://github.com/pytest-dev/pytest-mock/issues/364)_).

.. _#365: pytest-dev/pytest-mock#365 .. _#364: pytest-dev/pytest-mock#364

3.10.0 (2022-10-05)

... (truncated)

Commits
  • 8733134 Update CHANGELOG for 3.14.0
  • 5257e3c Refactor MockCache to have a narrow interface
  • 4faf92a Fix regression with mocker.patch not being undone correctly
  • 6bd8712 Drop pre-Python 3.8 support code
  • 366966b Export MockType/AsyncMockType for type annotations (#415)
  • 852116b Merge pull request #418 from pytest-dev/release-3.13.0
  • ef9461b Add instructions on how to start deploy from command-line
  • 5b9d285 Release 3.13.0
  • 6d5d6dc Implement spy_return_list (#417)
  • dc28a0e [pre-commit.ci] pre-commit autoupdate (#416)
  • Additional commits viewable in compare view

Updates pytest-randomly from 3.12.0 to 3.15.0

Changelog

Sourced from pytest-randomly's changelog.

3.15.0 (2023-08-15)

  • Support Python 3.12.

3.14.0 (2023-08-15)

  • Reset the random state for Model Bakery <https://model-bakery.readthedocs.io/en/latest/>__.

3.13.0 (2023-07-10)

  • Drop Python 3.7 support.
Commits

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 <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the pytest group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [pytest](https://github.com/pytest-dev/pytest) | `7.4.0` | `8.1.1` |
| [pytest-django](https://github.com/pytest-dev/pytest-django) | `4.5.2` | `4.8.0` |
| [pytest-env](https://github.com/pytest-dev/pytest-env) | `0.6.2` | `1.1.3` |
| [pytest-mock](https://github.com/pytest-dev/pytest-mock) | `3.7.0` | `3.14.0` |
| [pytest-randomly](https://github.com/pytest-dev/pytest-randomly) | `3.12.0` | `3.15.0` |


Updates `pytest` from 7.4.0 to 8.1.1
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@7.4.0...8.1.1)

Updates `pytest-django` from 4.5.2 to 4.8.0
- [Release notes](https://github.com/pytest-dev/pytest-django/releases)
- [Changelog](https://github.com/pytest-dev/pytest-django/blob/master/docs/changelog.rst)
- [Commits](pytest-dev/pytest-django@v4.5.2...v4.8.0)

Updates `pytest-env` from 0.6.2 to 1.1.3
- [Release notes](https://github.com/pytest-dev/pytest-env/releases)
- [Commits](pytest-dev/pytest-env@0.6.2...1.1.3)

Updates `pytest-mock` from 3.7.0 to 3.14.0
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases)
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest-mock@v3.7.0...v3.14.0)

Updates `pytest-randomly` from 3.12.0 to 3.15.0
- [Changelog](https://github.com/pytest-dev/pytest-randomly/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest-randomly@3.12.0...3.15.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: pytest
- dependency-name: pytest-django
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: pytest
- dependency-name: pytest-env
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: pytest
- dependency-name: pytest-mock
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: pytest
- dependency-name: pytest-randomly
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: pytest
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from a team as a code owner April 16, 2024 08:48
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Apr 16, 2024
@c0rydoras c0rydoras merged commit 1412759 into master Apr 16, 2024
3 checks passed
@c0rydoras c0rydoras deleted the dependabot/pip/pytest-47a10ca935 branch April 16, 2024 08:53
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.

1 participant