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

Added blobstore image example #291

Merged
merged 1 commit into from
Apr 28, 2016

Conversation

thesandlord
Copy link
Contributor

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 27, 2016
# [START all]
# [START thumbnailer]
from google.appengine.api import images
from google.appengine.ext import blobstore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blobstore should be above images, lint will fail otherwise.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint passes for me?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I'm dumb and mis-read ext and api. This is fine.

@theacodes
Copy link
Contributor

LGTM with small nit


def test_img(app):
with mock.patch('blobstore.images') as mock_images:
with mock.patch('blobstore.blobstore') as mock_blobstore:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make these decorators? less nesting so a little cleaner imo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can do this after closing the bug

@thesandlord
Copy link
Contributor Author

Can we merge this?

@theacodes
Copy link
Contributor

Sure.

@theacodes theacodes merged commit fe59a33 into GoogleCloudPlatform:master Apr 28, 2016
telpirion pushed a commit that referenced this pull request Nov 16, 2022
dandhlee pushed a commit that referenced this pull request Nov 18, 2022
engelke pushed a commit that referenced this pull request Nov 28, 2022
Sita04 pushed a commit that referenced this pull request Feb 7, 2023
…#291)

* chore(python): run blacken session for all directories with a noxfile

Source-Link: googleapis/synthtool@bc0de6e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:39ad8c0570e4f5d2d3124a509de4fe975e799e2b97e0f58aed88f8880d5a8b60

* lint

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
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
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