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

Cherry pick cleanups from #499. #501

Merged
merged 7 commits into from
Jan 7, 2015
Merged

Cherry pick cleanups from #499. #501

merged 7 commits into from
Jan 7, 2015

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Jan 7, 2015

  • Make require_dataset_id and '_require_connection' take the passed object, and test explicitly against None.
  • Tweak docstrings to reflect API changes.
  • Clarify implicit environ tests.
  • Clarify dependency on implicit environ in key tests.

- Rework '_require_dataset' -> '_require_dataset_id'.

  Also, make both it and '_require_connection' take the passed object,
  and test explicitly against None.

- Docstring tweaks to reflect API reshapings.

- Clarify implicit environ tests.

- Clarify dependency on implicit environ in key tests.
@@ -418,7 +416,7 @@ def save_entity(self, dataset_id, key_pb, properties,
not passed in 'properties' no longer be set for the entity.

:type dataset_id: string
:param dataset_id: The dataset in which to save the entity.
:param dataset_id: The id of the dataset in which to save the entity.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Jan 7, 2015

./gcloud/datastore/key.py:78:5: E303 too many blank lines (2)


def test_ctor_w_implicit_dataset_id_empty_path(self):
_DATASET = 'DATASET'
self.assertRaises(ValueError, self._makeOne, dataset=_DATASET)

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Jan 7, 2015

Your favorite:

./gcloud/datastore/test_key.py:100:25: E128 continuation line under-indented for visual indent
./gcloud/datastore/test_key.py:132:13: E128 continuation line under-indented for visual indent
./gcloud/datastore/test_key.py:136:29: E127 continuation line over-indented for visual indent
./gcloud/datastore/test_key.py:138:29: E127 continuation line over-indented for visual indent
./gcloud/datastore/test_key.py:140:29: E127 continuation line over-indented for visual indent
./gcloud/datastore/test_key.py:141:29: E127 continuation line over-indented for visual indent

Suggest just lining up with word / line beginning.

@dhermes
Copy link
Contributor

dhermes commented Jan 7, 2015

LGTM pending lint issues.

Also probably worth fixing the kw dataset= in test_ctor_w_implicit_dataset_id_empty_path,

tseaver added a commit that referenced this pull request Jan 7, 2015
@tseaver tseaver merged commit 0eca209 into googleapis:master Jan 7, 2015
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 90829f5 on tseaver:cherrypick-499 into 7019708 on GoogleCloudPlatform:master.

@tseaver tseaver deleted the cherrypick-499 branch January 7, 2015 22:18
@dhermes dhermes added the api: datastore Issues related to the Datastore API. label Dec 31, 2015
parthea pushed a commit that referenced this pull request Aug 15, 2023
…p/templates/python_library/.kokoro (#501)

Source-Link: https://github.com/googleapis/synthtool/commit/bb171351c3946d3c3c32e60f5f18cee8c464ec51
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f62c53736eccb0c4934a3ea9316e0d57696bb49c1a7c86c726e9bb8a2f87dadf
vchudnov-g pushed a commit that referenced this pull request Sep 20, 2023
Source-Link: googleapis/synthtool@eb78c98
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:8a5d3f6a2e43ed8293f34e06a2f56931d1e88a2694c3bb11b15df4eb256ad163
parthea added a commit that referenced this pull request Sep 22, 2023
…501)

* Repo clean-up

* 🦉 Updates from OwlBot post-processor

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

* Add README.md

* 🦉 Updates from OwlBot post-processor

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

* Rename samples/README.md to samples/snippets/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea added a commit that referenced this pull request Oct 21, 2023
Co-authored-by: Anthonios Partheniou <partheniou@google.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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants