googleapis / googleapis/google-cloud-python

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

Đang mở
#15,638 3 bình luận 0 reaction 1 người được giao Được @abbrowne126 nhận Xem trên GitHub
api: pubsub priority: p3
Ngôn ngữ chính
Python
Star
5.4k
Fork
1.8k
Merge trung bình
3 ngày 4 giờ
Pull request đã merge (30 ngày)
122

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.