googleapis / googleapis/google-cloud-python

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

Open
#15,638 3 comments 0 reactions 1 assignee Claimed by @abbrowne126 View on GitHub
api: pubsub priority: p3
Dominant language
Python
Stars
5.4k
Forks
1.8k
Avg merge
3d 4h
Merged PRs (30d)
122

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.