Skip to content

Commit

Permalink
Add raises docstrings.
Browse files Browse the repository at this point in the history
  • Loading branch information
daspecster committed Jul 8, 2016
1 parent 5c6e92a commit 51c0a3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions gcloud/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def _get_signed_query_params(credentials, expiration, string_to_sign):
:type string_to_sign: string
:param string_to_sign: The string to be signed by the credentials.
:raises AttributeError: If :meth: sign_blob is unavailable.
:rtype: dict
:returns: Query parameters matching the signing credentials with a
signed payload.
Expand Down Expand Up @@ -123,6 +125,8 @@ def _get_expiration_seconds(expiration):
:type expiration: int, long, datetime.datetime, datetime.timedelta
:param expiration: When the signed URL should expire.
:raises TypeError: When expiration is not an integer.
:rtype: int
:returns: a timestamp as an absolute number of seconds.
"""
Expand Down
4 changes: 2 additions & 2 deletions gcloud/test_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def _callFUT(self, credentials, expiration, string_to_sign):

def test_it(self):
import base64
from gcloud._testing import _Monkey
from gcloud import credentials as MUT
# from gcloud._testing import _Monkey
# from gcloud import credentials as MUT

SIG_BYTES = b'DEADBEEF'
ACCOUNT_NAME = object()
Expand Down

0 comments on commit 51c0a3f

Please sign in to comment.