googleapis / googleapis/google-cloud-python

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

Aperta
#15,638 3 commenti 0 reazioni 1 assegnatario Rivendicata da @abbrowne126 Vedi su GitHub
api: pubsub priority: p3
Lingua principale
Python
Stelle
5.4k
Fork
1.8k
Merge medio
3g 4h
PR unite (30g)
122

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.