Skip to content

pip (deps-dev): bump pytest from 8.4.2 to 9.0.3 in /sandbox#332

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/sandbox/pytest-9.0.3
Closed

pip (deps-dev): bump pytest from 8.4.2 to 9.0.3 in /sandbox#332
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/sandbox/pytest-9.0.3

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 14, 2026

Bumps pytest from 8.4.2 to 9.0.3.

Release notes

Sourced from pytest's releases.

9.0.3

pytest 9.0.3 (2026-04-07)

Bug fixes

  • #12444: Fixed pytest.approx which now correctly takes into account ~collections.abc.Mapping keys order to compare them.

  • #13634: Blocking a conftest.py file using the -p no: option is now explicitly disallowed.

    Previously this resulted in an internal assertion failure during plugin loading.

    Pytest now raises a clear UsageError explaining that conftest files are not plugins and cannot be disabled via -p.

  • #13734: Fixed crash when a test raises an exceptiongroup with __tracebackhide__ = True.

  • #14195: Fixed an issue where non-string messages passed to unittest.TestCase.subTest() were not printed.

  • #14343: Fixed use of insecure temporary directory (CVE-2025-71176).

Improved documentation

  • #13388: Clarified documentation for -p vs PYTEST_PLUGINS plugin loading and fixed an incorrect -p example.
  • #13731: Clarified that capture fixtures (e.g. capsys and capfd) take precedence over the -s / --capture=no command-line options in Accessing captured output from a test function <accessing-captured-output>.
  • #14088: Clarified that the default pytest_collection hook sets session.items before it calls pytest_collection_finish, not after.
  • #14255: TOML integer log levels must be quoted: Updating reference documentation.

Contributor-facing changes

  • #12689: The test reports are now published to Codecov from GitHub Actions. The test statistics is visible on the web interface.

    -- by aleguy02

9.0.2

pytest 9.0.2 (2025-12-06)

Bug fixes

  • #13896: The terminal progress feature added in pytest 9.0.0 has been disabled by default, except on Windows, due to compatibility issues with some terminal emulators.

    You may enable it again by passing -p terminalprogress. We may enable it by default again once compatibility improves in the future.

    Additionally, when the environment variable TERM is dumb, the escape codes are no longer emitted, even if the plugin is enabled.

  • #13904: Fixed the TOML type of the tmp_path_retention_count settings in the API reference from number to string.

  • #13946: The private config.inicfg attribute was changed in a breaking manner in pytest 9.0.0. Due to its usage in the ecosystem, it is now restored to working order using a compatibility shim. It will be deprecated in pytest 9.1 and removed in pytest 10.

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR 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 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)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.4.2 to 9.0.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@8.4.2...9.0.3)

---
updated-dependencies:
- dependency-name: pytest
  dependency-version: 9.0.3
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Apr 14, 2026
ellie-bound1-NHSD pushed a commit that referenced this pull request May 18, 2026
…e-api repo (#349)

# Pull Request

## 🧾 Ticket Link

https://nhsd-jira.digital.nhs.uk/browse/NPA-6978

---

## 📄 Description/Summary of Changes

There are 14 Dependabot branches/PRs up to 14/05/2026. Most of these are
small package updates.

Analysis:
-----8<-----8<-----8<-----8<-----8<-----
The 14 Dependabot branches break down into three categories:
pyproject.toml + lock file (direct dep bumps, 3 PRs):

- #320 — black 26.3.1 in pyproject.toml
- #321 — black 26.3.1 in pyproject.toml
- #332 — pytest 9.0.3 in pyproject.toml

Lock file only (transitive dep bumps, 10 PRs):

- poetry.lock: requests, cryptography, python-dotenv, lxml, urllib3,
authlib
- poetry.lock: requests
- poetry.lock: (implied by sandbox pytest)
- package-lock.json: follow-redirects, basic-ftp, fast-uri

GitHub Actions YAML only (1 PR):

- #345 — workflows changes, no lock files

So the practical plan is: apply the 3 pyproject.toml edits, regenerate
all lock files fresh (which picks up all transitive updates in one
shot), cherry-pick #345, then commit and push.
-----8<-----8<-----8<-----8<-----8<-----

Steps:

1. Made the required bumps to `pyproject.toml` and
`sandbox/pyproject.toml`
2. Updated lock files:
-- poetry lock
-- cd sandbox && poetry lock && cd ..
-- cd scripts && poetry lock && cd ..
-- npm update follow-redirects basic-ftp fast-uri
3. cherry-pick #345
-- git cherry-pick
origin/dependabot/github_actions/github-dependencies-0645f932cc
4. Noted vulnerability in `pytest-nhsd-apim`: upgraded from `^5.0.0` to
`^6.0.0`

Outcome is 'better than Dependabot':
Package | Dependabot suggested | Now in lock
black (root + sandbox) | 26.3.1 | 26.3.1 ✅
pytest (sandbox) | 9.0.3 | 9.0.3 ✅
python-dotenv | 1.2.2 | 1.2.2 ✅
lxml | 6.1.0 | 6.1.0 ✅
urllib3 | 2.7.0 | 2.7.0 ✅
requests | 2.33.0 | 2.34.2 ⬆️ newer
authlib | 1.6.12 | 1.7.2 ⬆️ newer
cryptography | 46.0.7 | 48.0.0 ⬆️ newer
follow-redirects | 1.16.0 | 1.16.0 ✅
basic-ftp | 5.3.1 | 5.3.1 ✅
fast-uri | 3.1.2 | 3.1.2 ✅


---

## 🧪 Developer Testing Carried Out

<!-- Describe what tests (automated/unit/manual etc.) have been done for
the ticket. Include: -->
<!-- - Any tests added/updated -->
<!-- - Evidence that each acceptance criterion from the Jira ticket is
met -->
<!-- - Evidence of tests running eg. link to github workflow with tests
passing or screenshot of tests running locally -->

- `make schema-all`: All tests pass ✅

- `make generate-postman-collection` regenerates
`postman/validated_relationship_service.sandbox.postman_collection.json`
with only the UUIDs changed. ✅
- `make test-postman-collection
SANDBOX_BASE_URL=https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4`:
All tests pass ✅

---

## 📋 PR Principles

<!-- Principles we as a team follow when conducting a PR -->

- Keep PRs Small and Focused: Ensure the PR addresses a single task or
feature to make it easier to review.
- Multiple PRs for one Ticket: When splitting work into multiple PRs,
clearly describe what this PR addresses and outline the remaining work
to complete the ticket.
- Ensure Tests Are Included: Add or update unit, integration, or
end-to-end tests to cover the changes made.
- Follow Coding Standards: Ensure the code adheres to the team's coding
guidelines and best practices.
- Resolve Comments Promptly: If you raise a comment, ensure you follow
up and resolve it before approving the PR to maintain clarity and ensure
comments are addressed.
- Foster Learning: PR reviews are an opportunity to share knowledge,
provide constructive feedback, and encourage a collaborative
environment.

## 🏷️ Naming Conventions Reminder

Please ensure the following naming conventions are followed:

- PR title follows the format: `NPA-XXXX: <short-description>`
- Branch name follows the convention:
`<type>/NPA-XXXX/<short-description>`
- Commit messages follow the template: `NPA-XXXX: <short-description>`

---------

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@davesmallnhs
Copy link
Copy Markdown
Contributor

Dependabot PR closed without merge: this update has been rolled into #349 (NPA-6798)

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 19, 2026

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot Bot deleted the dependabot/pip/sandbox/pytest-9.0.3 branch May 19, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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