Uh oh!
There was an error while loading. Please reload this page.
Pull snippets from docstrings. - #2611
Conversation
dhermes
commented
Oct 25, 2016
@daspecster I have already started a review and noticed a new commit come in. Should I stop reviewing / is it stable? |
daspecster
commented
Oct 25, 2016
@dhermes sorry yeah I was getting travis to pass. I updated the PR's original description with a question though.
|
daspecster
commented
Oct 25, 2016
#stilltryingtogettravistopass.... |
| def _millis(): | ||
| return time.time() * 1000 |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| need to be deleted during teardown. | ||
| """ | ||
| import time |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| client = storage.Client(project='my-project') | ||
| bucket = client.get_bucket('my-bucket') | ||
| encryption_key = 'aa426195405adee2c8081bb9e7e74b19' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| print(bucket.get_blob('/path/to/blob.txt')) | ||
| # <Blob: my-bucket, /path/to/blob.txt> | ||
| print(bucket.get_blob('/does-not-exist.txt')) | ||
| # None |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| except AssertionError as e: | ||
| print(' FAIL: %s' % (e,)) | ||
| except Exception as e: # pylint: disable=broad-except | ||
| print(' ERROR: %r' % (e,)) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dhermes
commented
Oct 25, 2016
RE:
Why can't you run these on your local machine? |
They passed on my local machine(falsely). I keep having to delete my |
dhermes
left a comment
There was a problem hiding this comment.
Ah shucks. Many of those asserts ended up being not so useful, in particular the isinstance ones.
Hold off on this until I get the Pub/Sub rewrite proof-of-concept going?
| blob = bucket.get_blob('/remote/path/to/file.txt') | ||
| print(blob.download_as_string()) | ||
| (blob.download_as_string()) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
daspecster
commented
Nov 13, 2016
@dhermes am I good to go on this then? |
dhermes
commented
Nov 14, 2016
@daspecster Not sure what you are referring to. You should definitely rebase and get the CIs green before merging.. If you are asking about the assets, I said before
|
47b0ec8 to
a589a13Comparedaspecster
commented
Nov 14, 2016
Ok, squashed and we'll see if Travis runs it in a timely fashion. |
a589a13 to
e780cc4ComparePull snippets from docstrings.
These snippets don't run yet but the docs build and pull them.
@dhermessuggested I could merged this in before getting them to run.
I'm not sure about removing the imports for some snippets. It seems like those a nice to have?