Skip to content

Commit 71e1080

Browse files
linting
1 parent c289c34 commit 71e1080

File tree

1 file changed

+6
-4
lines changed
  • modules/google/testcontainers/google

1 file changed

+6
-4
lines changed

modules/google/testcontainers/google/pubsub.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@ def _get_client(self, cls: type, **kwargs) -> dict:
5757

5858
def get_publisher_client(self, **kwargs) -> pubsub.PublisherClient:
5959
from google.auth import credentials
60-
kwargs['client_options'] = dict(api_endpoint=self.get_pubsub_emulator_host())
61-
kwargs['credentials'] = credentials.AnonymousCredentials()
60+
61+
kwargs["client_options"] = {"api_endpoint": self.get_pubsub_emulator_host()}
62+
kwargs["credentials"] = credentials.AnonymousCredentials()
6263
return self._get_client(pubsub.PublisherClient, **kwargs)
6364

6465
def get_subscriber_client(self, **kwargs) -> pubsub.SubscriberClient:
6566
from google.auth import credentials
66-
kwargs['client_options'] = dict(api_endpoint=self.get_pubsub_emulator_host())
67-
kwargs['credentials'] = credentials.AnonymousCredentials()
67+
68+
kwargs["client_options"] = {"api_endpoint": self.get_pubsub_emulator_host()}
69+
kwargs["credentials"] = credentials.AnonymousCredentials()
6870
return self._get_client(pubsub.SubscriberClient, **kwargs)

0 commit comments

Comments
 (0)