Skip to content

Commit

Permalink
#138 - kafka.read - reformat - missed file
Browse files Browse the repository at this point in the history
  • Loading branch information
wheelly committed Feb 18, 2024
1 parent 3533eb0 commit 9a74193
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integration-tests/common/kafka_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
from kafka import KafkaProducer
from testcontainers.kafka import KafkaContainer


def get_kafka_container() -> KafkaContainer:
return (KafkaContainer(image="confluentinc/cp-kafka:latest")
.with_bind_ports(KafkaContainer.KAFKA_PORT, KafkaContainer.KAFKA_PORT))


def get_kafka_producer(bootstrap_servers: str) -> KafkaProducer:
return KafkaProducer(bootstrap_servers=bootstrap_servers)

0 comments on commit 9a74193

Please sign in to comment.