Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit

Permalink
37 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Jun 26, 2023
1 parent a06d370 commit cfb588e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/fastapi/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ async def lifespan(app: FastAPI):
mock.closed.assert_called_once()


@needs_py38
def test_after_startup_sync(router: KafkaRouter, mock: Mock):
@router.after_startup
def call_after(app):
Expand All @@ -62,6 +63,7 @@ def call_after(app):
assert client.app_state["after"] is True


@needs_py38
def test_after_startup_async(router: KafkaRouter, mock: Mock):
@router.after_startup
async def call_after(app):
Expand Down

0 comments on commit cfb588e

Please sign in to comment.