Skip to content

chore(deps): update pytest-asyncio requirement from <1 to <2 #1329

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 1, 2025

Updates the requirements on pytest-asyncio to permit the latest version.

Release notes

Sourced from pytest-asyncio's releases.

pytest-asyncio 1.0.0

1.0.0 - 2025-05-26

Removed

  • The deprecated event_loop fixture. (#1106)

Added

  • Prelimiary support for Python 3.14 (#1025)

Changed

  • Scoped event loops (e.g. module-scoped loops) are created once rather than per scope (e.g. per module). This reduces the number of fixtures and speeds up collection time, especially for large test suites. (#1107)
  • The loop_scope argument to pytest.mark.asyncio no longer forces that a pytest Collector exists at the level of the specified scope. For example, a test function marked with pytest.mark.asyncio(loop_scope="class") no longer requires a class surrounding the test. This is consistent with the behavior of the scope argument to pytest_asyncio.fixture. (#1112)

Fixed

  • An error caused when using pytest's [--setup-plan]{.title-ref} option. (#630)
  • Unsuppressed import errors with pytest option --doctest-ignore-import-errors (#797)
  • A "fixture not found" error in connection with package-scoped loops (#1052)

Notes for Downstream Packagers

  • Removed a test that had an ordering dependency on other tests. (#1114)
Commits
  • 5ef97bd chore: Prepare release of v1.0.0.
  • f212e24 docs: Mention fix of #797.
  • 32c1d10 test: Removed obsolete test for async_gen_fixtures.
  • 627ce92 [pre-commit.ci] pre-commit autoupdate
  • a55ff36 Build(deps): Bump pluggy from 1.5.0 to 1.6.0 in /dependencies/default
  • 633389f Build(deps): Bump hypothesis in /dependencies/default
  • 0c99466 docs: Fixed an error that reported a missing event_loop fixture when using pa...
  • 0688d17 ci: Replace Github template expansion with env variable expansion.
  • 2adcf52 ci: Quote Github variable expansion.
  • dd0fac9 ci: Fixed a bug that prevented release notes from being extracted from a Git ...
  • Additional commits viewable in compare view

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 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 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)

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

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jul 1, 2025
Copy link

codecov bot commented Jul 1, 2025

❌ 30 Tests Failed:

Tests completed Failed Passed Skipped
3933 30 3903 0
View the top 3 failed test(s) by shortest run time
tests.adapter_tests_async.test_async_sanic.TestSanic::test_commands
Stack Traces | 0.548s run time
self = <tests.adapter_tests_async.test_async_sanic.TestSanic object at 0x7fb559662520>

    @pytest.mark.asyncio
    async def test_commands(self):
        app = AsyncApp(
            client=self.web_client,
            signing_secret=self.signing_secret,
        )
    
        async def command_handler(ack):
            await ack()
    
        app.command("/hello-world")(command_handler)
    
        input = (
            "token=verification_token"
            "&team_id=T111"
            "&team_domain=test-domain"
            "&channel_id=C111"
            "&channel_name=random"
            "&user_id=W111"
            "&user_name=primary-owner"
            "&command=%2Fhello-world"
            "&text=Hi"
            "&enterprise_id=E111"
            "&enterprise_name=Org+Name"
            "&response_url=https%3A%2F%2Fhooks.slack.com%2Fcommands%2FT111%2F111%2Fxxxxx"
            "&trigger_id=111.111.xxx"
        )
        timestamp, body = str(int(time())), input
    
        api = Sanic(name=self.unique_sanic_app_name())
        app_handler = AsyncSlackRequestHandler(app)
    
        @api.post("/slack/events")
        async def endpoint(req: Request):
            return await app_handler.handle(req)
    
        _, response = await api.asgi_client.post(
            url="/slack/events",
            content=body,
            headers=self.build_headers(timestamp, body),
        )
>       assert response.status_code == 200
E       assert 500 == 200
E        +  where 500 = <Response [500 Internal Server Error]>.status_code

tests/adapter_tests_async/test_async_sanic.py:197: AssertionError
tests.adapter_tests_async.test_async_sanic.TestSanic::test_commands
Stack Traces | 0.624s run time
self = <tests.adapter_tests_async.test_async_sanic.TestSanic object at 0x7f735233d090>

    @pytest.mark.asyncio
    async def test_commands(self):
        app = AsyncApp(
            client=self.web_client,
            signing_secret=self.signing_secret,
        )
    
        async def command_handler(ack):
            await ack()
    
        app.command("/hello-world")(command_handler)
    
        input = (
            "token=verification_token"
            "&team_id=T111"
            "&team_domain=test-domain"
            "&channel_id=C111"
            "&channel_name=random"
            "&user_id=W111"
            "&user_name=primary-owner"
            "&command=%2Fhello-world"
            "&text=Hi"
            "&enterprise_id=E111"
            "&enterprise_name=Org+Name"
            "&response_url=https%3A%2F%2Fhooks.slack.com%2Fcommands%2FT111%2F111%2Fxxxxx"
            "&trigger_id=111.111.xxx"
        )
        timestamp, body = str(int(time())), input
    
        api = Sanic(name=self.unique_sanic_app_name())
        app_handler = AsyncSlackRequestHandler(app)
    
        @api.post("/slack/events")
        async def endpoint(req: Request):
            return await app_handler.handle(req)
    
        _, response = await api.asgi_client.post(
            url="/slack/events",
            content=body,
            headers=self.build_headers(timestamp, body),
        )
>       assert response.status_code == 200
E       assert 500 == 200
E        +  where 500 = <Response [500 Internal Server Error]>.status_code

tests/adapter_tests_async/test_async_sanic.py:197: AssertionError
tests.adapter_tests_async.test_async_sanic.TestSanic::test_events
Stack Traces | 0.664s run time
self = <tests.adapter_tests_async.test_async_sanic.TestSanic object at 0x7f735251f350>

    @pytest.mark.asyncio
    async def test_events(self):
        app = AsyncApp(
            client=self.web_client,
            signing_secret=self.signing_secret,
        )
    
        async def event_handler():
            pass
    
        app.event("app_mention")(event_handler)
    
        input = {
            "token": "verification_token",
            "team_id": "T111",
            "enterprise_id": "E111",
            "api_app_id": "A111",
            "event": {
                "client_msg_id": "9cbd4c5b-7ddf-4ede-b479-ad21fca66d63",
                "type": "app_mention",
                "text": "<@W111> Hi there!",
                "user": "W222",
                "ts": "1595926230.009600",
                "team": "T111",
                "channel": "C111",
                "event_ts": "1595926230.009600",
            },
            "type": "event_callback",
            "event_id": "Ev111",
            "event_time": 1595926230,
            "authed_users": ["W111"],
        }
        timestamp, body = str(int(time())), json.dumps(input)
    
        api = Sanic(name=self.unique_sanic_app_name())
        app_handler = AsyncSlackRequestHandler(app)
    
        @api.post("/slack/events")
        async def endpoint(req: Request):
            return await app_handler.handle(req)
    
        _, response = await api.asgi_client.post(
            url="/slack/events",
            content=body,
            headers=self.build_headers(timestamp, body),
        )
>       assert response.status_code == 200
E       assert 500 == 200
E        +  where 500 = <Response [500 Internal Server Error]>.status_code

tests/adapter_tests_async/test_async_sanic.py:109: AssertionError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@dependabot dependabot bot force-pushed the dependabot/pip/pytest-asyncio-lt-2 branch from b8abe0e to 2964ac2 Compare July 2, 2025 00:27
@dependabot dependabot bot force-pushed the dependabot/pip/pytest-asyncio-lt-2 branch 2 times, most recently from adddd4a to 0875cfd Compare July 2, 2025 16:54
Updates the requirements on [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](pytest-dev/pytest-asyncio@v0.1.1...v1.0.0)

---
updated-dependencies:
- dependency-name: pytest-asyncio
  dependency-version: 1.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/pytest-asyncio-lt-2 branch from 0875cfd to 91b1953 Compare July 2, 2025 19:17
@WilliamBergamin
Copy link
Contributor

@dependabot rebase

Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 1, 2025

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

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