googleapis / googleapis/google-cloud-python

Remove test code related to `PUBSUB_EMULATOR_HOST` from `client.py`

Offen
#15,638 3 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @abbrowne126 Auf GitHub ansehen
api: pubsub priority: p3
Vorherrschende Sprache
Python
Sterne
5.4k
Forks
1.8k
Ø Merge
3 T. 4 Std.
Gemergte PRs (30 T.)
122

Beschreibung

Currently, the emulator code (for testing purposes) is set in `client.py` i.e. if `PUBSUB_EMULATOR_HOST` is set:

- api endpoint is set to the `PUBSUB_EMULATOR_HOST`.
- credentials are set to `AnonymousCredentials`.
- channel is set to `insecure_channel`.

Remove this code from the client files and include it in the test files directly. The exact code location can be looked up by searching for this issue.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.