mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 11:51:10 +00:00
Improve coverage
This commit is contained in:
@@ -32,3 +32,6 @@ class RateLimiting(Framework.TestCase):
|
||||
self.g.get_user("jacquev6")
|
||||
self.assertEqual(self.g.rate_limiting, (4999, 5000))
|
||||
self.assertEqual(self.g.rate_limiting_resettime, 1375802816)
|
||||
|
||||
def testResetTime(self):
|
||||
self.assertEqual(self.g.rate_limiting_resettime, 1375802816)
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
https
|
||||
GET
|
||||
api.github.com
|
||||
None
|
||||
/rate_limit
|
||||
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
|
||||
null
|
||||
200
|
||||
[('status', '200 OK'), ('x-ratelimit-remaining', '5000'), ('x-github-media-type', 'github.beta; format=json'), ('x-content-type-options', 'nosniff'), ('access-control-expose-headers', 'ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes'), ('cache-control', 'max-age=0, private, must-revalidate'), ('vary', 'Accept-Encoding'), ('content-length', '59'), ('server', 'GitHub.com'), ('x-ratelimit-limit', '5000'), ('etag', '"47ba6b48c8b2986ec54f249b51b0a9ec"'), ('access-control-allow-credentials', 'true'), ('date', 'Tue, 06 Aug 2013 14:52:12 GMT'), ('x-oauth-scopes', 'user, public_repo, repo, gist'), ('content-type', 'application/json; charset=utf-8'), ('access-control-allow-origin', '*'), ('x-ratelimit-reset', '1375802816')]
|
||||
{"rate":{"limit":5000,"remaining":5000,"reset":1375802816}}
|
||||
Reference in New Issue
Block a user