Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing _implicit_environ module globals with a container. #664

Merged
merged 1 commit into from
Feb 19, 2015

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Feb 18, 2015

This is so that a container instance can have lazily loaded properties.

NOTE: Has #663 as a diffbase

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 18, 2015
@dhermes dhermes force-pushed the use-implicit-defaults-container branch from 168d94a to 5a7071d Compare February 18, 2015 19:32
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 5a7071d on dhermes:use-implicit-defaults-container into f56abdf on GoogleCloudPlatform:master.

@tseaver
Copy link
Contributor

tseaver commented Feb 18, 2015

@dhermes Ping me after merging #663 and rebasing.

@dhermes dhermes force-pushed the use-implicit-defaults-container branch from 5a7071d to 5a91e30 Compare February 18, 2015 22:13
@dhermes
Copy link
Contributor Author

dhermes commented Feb 18, 2015

@tseaver Rebased

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 5a91e30 on dhermes:use-implicit-defaults-container into 72b6359 on GoogleCloudPlatform:master.

@dhermes dhermes added the api: datastore Issues related to the Datastore API. label Feb 19, 2015
@dhermes dhermes mentioned this pull request Feb 19, 2015
@@ -141,8 +147,10 @@ def test_set_gcd_and_production_env_vars(self):
with self._monkeyImplicit():
self._callFUT()

self.assertNotEqual(_implicit_environ.DATASET_ID, GCD_DATASET_ID)
self.assertEqual(_implicit_environ.DATASET_ID, IMPLICIT_DATASET_ID)
self.assertNotEqual(_implicit_environ.get_default_dataset_id(),

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@tseaver
Copy link
Contributor

tseaver commented Feb 19, 2015

Except for the two redundant assertions I noted, LGTM.

This is so that a container instance can have lazily loaded
properties.
@dhermes dhermes force-pushed the use-implicit-defaults-container branch from 5a91e30 to b0cdca6 Compare February 19, 2015 19:03
@dhermes
Copy link
Contributor Author

dhermes commented Feb 19, 2015

Rebased and folded the removal into the original commit. Will merge on Travis.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling b0cdca6 on dhermes:use-implicit-defaults-container into b3be71e on GoogleCloudPlatform:master.

dhermes added a commit that referenced this pull request Feb 19, 2015
Replacing _implicit_environ module globals with a container.
@dhermes dhermes merged commit 998c724 into googleapis:master Feb 19, 2015
@dhermes dhermes deleted the use-implicit-defaults-container branch February 19, 2015 19:08
vchudnov-g pushed a commit that referenced this pull request Sep 20, 2023
* docs: Minor formatting

PiperOrigin-RevId: 553461544

Source-Link: googleapis/googleapis@347e81d

Source-Link: googleapis/googleapis-gen@1177b66
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTE3N2I2NjNkZTUwMDc5ZGJjZmNiYjdlZWJlOTljN2VlMjFjYTA3NCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the Datastore API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants