We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3785934 commit 5ac5f9fCopy full SHA for 5ac5f9f
google/testcontainers/google/pubsub.py
@@ -32,9 +32,9 @@ class PubSubContainer(DockerContainer):
32
33
>>> from testcontainers.google import PubSubContainer
34
35
- >>> config = PubSubContainer('google/cloud-sdk:emulators')
+ >>> config = PubSubContainer()
36
>>> with config as pubsub:
37
- ... publisher = pubsub.get_publisher()
+ ... publisher = pubsub.get_publisher_client()
38
... topic_path = publisher.topic_path(pubsub.project, "my-topic")
39
... topic = publisher.create_topic(name=topic_path)
40
"""
0 commit comments