googleapis / googleapis/google-cloud-python

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

未关闭
#15,638 3 条评论 0 个 reaction 已指派 1 人 已被 @abbrowne126 认领 在 GitHub 查看
api: pubsub priority: p3
主要语言
Python
星标
5.4k
派生
1.8k
平均合并
3 天 4 小时
30 天内合并 PR
122

描述

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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。