idella4 14/04/12 12:28:38 Modified: requests-oauthlib-0.4.0-expires_at.patch Log: update patch, test phase (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Revision Changes Path 1.2 dev-python/requests-oauthlib/files/requests-oauthlib-0.4.0-expires_at.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/requests-oauthlib/files/requests-oauthlib-0.4.0-expires_at.patch?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/requests-oauthlib/files/requests-oauthlib-0.4.0-expires_at.patch?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/requests-oauthlib/files/requests-oauthlib-0.4.0-expires_at.patch?r1=1.1&r2=1.2 Index: requests-oauthlib-0.4.0-expires_at.patch =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-python/requests-oauthlib/files/requests-oauthlib-0.4.0-expires_at.patch,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- requests-oauthlib-0.4.0-expires_at.patch 10 Apr 2014 12:04:26 -0000 1.1 +++ requests-oauthlib-0.4.0-expires_at.patch 12 Apr 2014 12:28:38 -0000 1.2 @@ -1,13 +1,22 @@ https://github.com/requests/requests-oauthlib/commit/7057cbee773c1dff1856730ca661cc71abb2506e.diff +https://github.com/requests/requests-oauthlib/commit/8c2c96c4bb45803df2779cfde90868445977ab96.diff diff --git a/tests/test_oauth2_session.py b/tests/test_oauth2_session.py index 305241a..cf095a5 100644 --- a/tests/test_oauth2_session.py +++ b/tests/test_oauth2_session.py +@@ -1,6 +1,7 @@ + from __future__ import unicode_literals + import json + import mock ++import time + import unittest + + from oauthlib.common import urlencode @@ -11,6 +11,9 @@ from requests_oauthlib import OAuth2Session, TokenUpdated -+fake_time = 1396184331.016881 ++fake_time = time.time() + + class OAuth2SessionTest(unittest.TestCase): @@ -50,4 +59,3 @@ def test_fetch_token(self): def fake_token(token): def fake_send(r, **kwargs): -
