chore(deps)(deps): Bump pytest-asyncio from 0.24.0 to 1.2.0 in /backend#144
chore(deps)(deps): Bump pytest-asyncio from 0.24.0 to 1.2.0 in /backend#144dependabot[bot] wants to merge 1 commit into
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
farelens-api | 92a025a | Commit Preview URL Branch Preview URL |
Dec 08 2025, 10:35 AM |
|
@codex review and address why two checks failed and how to fix it. |
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request updates pytest-asyncio from version 0.24.0 to 1.2.0. This is a major version upgrade that introduces significant changes. While the current test suite seems unaffected as it doesn't use async def test functions, the new version of pytest-asyncio defaults to a strict mode that requires explicit markers for async tests. I've added a comment with details on this change and recommendations to prevent future issues.
| # Development | ||
| pytest==8.3.4 | ||
| pytest-asyncio==0.24.0 | ||
| pytest-asyncio==1.2.0 |
There was a problem hiding this comment.
This is a major version bump for pytest-asyncio which introduces a significant change in its default behavior.
Starting from version 1.0.0, pytest-asyncio defaults to strict mode. In this mode, any asynchronous test function (async def) must be explicitly marked with @pytest.mark.asyncio to be discovered and run correctly.
The current test suite does not contain any async def tests, so it should not be affected. However, for future development, developers should be aware of this requirement.
To maintain the previous behavior where async tests are automatically discovered, you can explicitly set the mode to auto in your pytest configuration (e.g., pytest.ini or pyproject.toml):
[pytest]
asyncio_mode = autoI recommend either documenting this new requirement for developers or adding the configuration to avoid future confusion when writing asynchronous tests.
|
Summary
Testing
|
8add594 to
5603aec
Compare
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.24.0 to 1.2.0. - [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases) - [Commits](pytest-dev/pytest-asyncio@v0.24.0...v1.2.0) --- updated-dependencies: - dependency-name: pytest-asyncio dependency-version: 1.2.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
5603aec to
92a025a
Compare
Bumps pytest-asyncio from 0.24.0 to 1.2.0.
Release notes
Sourced from pytest-asyncio's releases.
... (truncated)
Commits
0d3988fci: Create GitHub release before publishing to PyPI.07c5a0bdocs: Include orphaned news fragment in changelog.be24582chore: Prepare release of v1.2.0.7aeb296docs: Streamline news fragments7b8311cci: Fixes a bug that prevented SSH signature from being stripped from release...9d4c2bddocs: Add changelog entry for Pyright compatibility.94f6106test: Added tests which assert that the event loop is reinstated if unset by ...df61991[pre-commit.ci] pre-commit autoupdatef1f7941Build(deps): Bump pytest from 8.4.1 to 8.4.2c77d3d3Build(deps): Bump twine from 6.1.0 to 6.2.0You 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)