Skip to content
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

Fast stream add batch test #551

Merged
merged 2 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ repos:
require_serial: true
verbose: true

repos:
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
Expand Down
8 changes: 1 addition & 7 deletions docs_src/kafka/publish_batch/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from faststream import FastStream, Logger
from faststream import FastStream
from faststream.kafka import KafkaBroker, TestKafkaBroker

broker = KafkaBroker()
Expand All @@ -15,12 +15,6 @@ async def handle(msg: str) -> List[int]:
return [1, 2, 3]


# when the following block is uncomment, the test passes
@broker.subscriber("response", batch=True)
async def handle_response(msg: List[int], logger: Logger):
logger.info(msg)


app = FastStream(broker)


Expand Down