Skip to content

Commit 5ac5f9f

Browse files
committed
Fix pubsub doctest.
1 parent 3785934 commit 5ac5f9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/testcontainers/google/pubsub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ class PubSubContainer(DockerContainer):
3232
3333
>>> from testcontainers.google import PubSubContainer
3434
35-
>>> config = PubSubContainer('google/cloud-sdk:emulators')
35+
>>> config = PubSubContainer()
3636
>>> with config as pubsub:
37-
... publisher = pubsub.get_publisher()
37+
... publisher = pubsub.get_publisher_client()
3838
... topic_path = publisher.topic_path(pubsub.project, "my-topic")
3939
... topic = publisher.create_topic(name=topic_path)
4040
"""

0 commit comments

Comments
 (0)