Materials-Consortia / optimade-gateway

A gateway for querying OPTIMADE APIs.
https://www.optimade.org/optimade-gateway
MIT License
5 stars 1 forks source link

Update pytest-httpx requirement from ~=0.30.0 to ~=0.31.1 in the dependencies group #520

Closed dependabot[bot] closed 2 months ago

dependabot[bot] commented 2 months ago

Updates the requirements on pytest-httpx to permit the latest version. Updates pytest-httpx to 0.31.1

Release notes

Sourced from pytest-httpx's releases.

0.31.1 (2024-09-22)

Fixed

  • It is now possible to match on content provided as async iterable by the client.
Changelog

Sourced from pytest-httpx's changelog.

[0.31.1] - 2024-09-22

Fixed

  • It is now possible to match on content provided as async iterable by the client.

[0.31.0] - 2024-09-20

Changed

  • Tests will now fail at teardown by default if some requests were issued but were not matched.
    • This behavior can be changed thanks to the new pytest.mark.httpx_mock(assert_all_requests_were_expected=False) option.
  • The httpx_mock fixture is now configured using a marker (many thanks to Frazer McLean).
    # Apply marker to whole module
    pytestmark = pytest.mark.httpx_mock(assert_all_responses_were_requested=False)
    

    Or to specific tests

    @​pytest.mark.httpx_mock(non_mocked_hosts=[...]) def test_foo(httpx_mock): ...

    • The following options are available:
      • assert_all_responses_were_requested (boolean), defaulting to True.
      • assert_all_requests_were_expected (boolean), defaulting to True.
      • non_mocked_hosts (iterable), defaulting to an empty list, meaning all hosts are mocked.
  • httpx_mock.reset do not expect any parameter anymore and will only reset the mock state (no assertions will be performed).

Removed

  • pytest 7 is not supported anymore (pytest 8 has been out for 9 months already).
  • assert_all_responses_were_requested fixture is not available anymore, use pytest.mark.httpx_mock(assert_all_responses_were_requested=False) instead.
  • non_mocked_hosts fixture is not available anymore, use pytest.mark.httpx_mock(non_mocked_hosts=[]) instead.

[0.30.0] - 2024-02-21

Changed

Fixed

  • Switch from setup.py to pyproject.toml (many thanks to Felix Scherz).

[0.29.0] - 2024-01-29

Added

[0.28.0] - 2023-12-21

Changed

[0.27.0] - 2023-11-13

Added

  • Explicit support for python 3.12.

Fixed

  • Custom HTTP transport are now handled (parent call to handle_async_request or handle_request).

... (truncated)

Commits
  • 75c308e Merge pull request #153 from Colin-b/develop
  • ca067b4 Merge branch 'master' into develop
  • d906a89 Merge pull request #152 from Colin-b/bugfix/iter_content
  • 6eddd05 Remove dead code
  • 29eb9c3 Bump version
  • cb820a2 Allow to match on client provided async iterable content
  • 26a374e Merge pull request #151 from Colin-b/develop
  • 414fb36 Merge remote-tracking branch 'origin/master' into develop
  • ddad01b Release version 0.31.0 today
  • bc1a05d Keep number of test cases up to date
  • Additional commits viewable in compare view


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 ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore 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 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 ` 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 ` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.16%. Comparing base (298ab97) to head (e86a64f). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #520 +/- ## ======================================= Coverage 88.16% 88.16% ======================================= Files 39 39 Lines 1242 1242 ======================================= Hits 1095 1095 Misses 147 147 ``` | [Flag](https://app.codecov.io/gh/Materials-Consortia/optimade-gateway/pull/520/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Materials-Consortia) | Coverage Δ | | |---|---|---| | [mongodb](https://app.codecov.io/gh/Materials-Consortia/optimade-gateway/pull/520/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Materials-Consortia) | `?` | | | [mongomock](https://app.codecov.io/gh/Materials-Consortia/optimade-gateway/pull/520/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Materials-Consortia) | `88.16% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Materials-Consortia#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

CasperWA commented 2 months ago

@dependabot recreate

dependabot[bot] commented 2 months ago

Superseded by #522.